Progress
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user