From 31f04851e5692d1f645916ecb71d13780f3ff0f7 Mon Sep 17 00:00:00 2001 From: Rish Date: Wed, 3 Jun 2020 10:58:38 +0530 Subject: [PATCH] Updated prop types for trigger button refs https://github.com/TryGhost/members.js/issues/5 - Only place where we pass down props to check popup state - Adds propType for popup state --- ghost/portal/src/components/TriggerButton.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghost/portal/src/components/TriggerButton.js b/ghost/portal/src/components/TriggerButton.js index a22f0c8443..30c183b70e 100644 --- a/ghost/portal/src/components/TriggerButton.js +++ b/ghost/portal/src/components/TriggerButton.js @@ -1,3 +1,4 @@ +import PropTypes from 'prop-types'; import Frame from './Frame'; import MemberGravatar from './common/MemberGravatar'; import {ParentContext} from './ParentContext'; @@ -102,3 +103,7 @@ export default class TriggerButton extends React.Component { ); } } + +TriggerButton.propTypes = { + isPopupOpen: PropTypes.bool +};