Finished updating the reformatting of propTypes and set redux, intl functions to end of component
• Finished: - updating the reformatting of propTypes and set redux, intl functions to end of component • Removed: - Gif implementation
This commit is contained in:
@@ -5,19 +5,7 @@ import Button from '../button'
|
||||
import Heading from '../heading'
|
||||
import Text from '../text'
|
||||
|
||||
export default class PopoverLayout extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
children: PropTypes.node,
|
||||
width: PropTypes.number,
|
||||
isXS: PropTypes.bool,
|
||||
title: PropTypes.string,
|
||||
onClose: PropTypes.func,
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
width: 250,
|
||||
}
|
||||
class PopoverLayout extends React.PureComponent {
|
||||
|
||||
handleOnClose = () => {
|
||||
this.props.onClose()
|
||||
@@ -71,4 +59,18 @@ export default class PopoverLayout extends React.PureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
PopoverLayout.propTypes = {
|
||||
children: PropTypes.node,
|
||||
width: PropTypes.number,
|
||||
isXS: PropTypes.bool,
|
||||
title: PropTypes.string,
|
||||
onClose: PropTypes.func,
|
||||
}
|
||||
|
||||
PopoverLayout.defaultProps = {
|
||||
width: 250,
|
||||
}
|
||||
|
||||
export default PopoverLayout
|
||||
Reference in New Issue
Block a user