0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

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
This commit is contained in:
Rish 2020-06-03 10:58:38 +05:30
parent 4d94188d1c
commit 31f04851e5

View file

@ -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
};