This commit is contained in:
mgabdev
2020-03-05 10:44:17 -05:00
parent c7da9da84e
commit 5109276331
62 changed files with 607 additions and 318 deletions

View File

@@ -4,18 +4,20 @@ const cx = classnames.bind(_s)
export default class Divider extends PureComponent {
static propTypes = {
small: PropTypes.bool
small: PropTypes.bool,
invisible: PropTypes.bool,
}
render() {
const { small } = this.props
const { small, invisible } = this.props
const classes = cx({
default: 1,
borderBottom1PX: 1,
borderColorSecondary2: 1,
borderBottom1PX: !invisible,
borderColorSecondary2: !invisible,
width100PC: 1,
marginBottom15PX: !small,
marginVertical10PX: small,
marginVertical10PX: small || invisible,
})
return (