This commit is contained in:
mgabdev
2020-04-06 21:53:23 -04:00
parent e485e2f955
commit b5e3c2a94f
58 changed files with 482 additions and 229 deletions

View File

@@ -4,13 +4,18 @@ export default class PopoverLayout extends PureComponent {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
width: PropTypes.number,
}
static defaultProps = {
width: 250,
}
render() {
const { children, className } = this.props
const { children, className, width } = this.props
return (
<div className={className}>
<div className={className} style={{width: `${width}px`}}>
<Block>
{children}
</Block>