From 369cbdaaf62ced1e3e8ab034f90046ab0fe27977 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Wed, 4 Apr 2018 13:38:07 +0100 Subject: [PATCH] Add missing PropType declarations. --- src/components/structures/ContextualMenu.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/structures/ContextualMenu.js b/src/components/structures/ContextualMenu.js index da69c38d73..0e2df890f3 100644 --- a/src/components/structures/ContextualMenu.js +++ b/src/components/structures/ContextualMenu.js @@ -30,11 +30,21 @@ module.exports = { ContextualMenuContainerId: "mx_ContextualMenu_Container", propTypes: { + top: PropTypes.number, + bottom: PropTypes.number, + left: PropTypes.number, + right: PropTypes.number, menuWidth: PropTypes.number, menuHeight: PropTypes.number, chevronOffset: PropTypes.number, menuColour: PropTypes.string, chevronFace: PropTypes.string, // top, bottom, left, right + // Function to be called on menu close + onFinished: PropTypes.func, + menuPaddingTop: PropTypes.number, + menuPaddingRight: PropTypes.number, + menuPaddingBottom: PropTypes.number, + menuPaddingLeft: PropTypes.number, }, getOrCreateContainer: function() {