This commit is contained in:
mgabdev
2020-04-23 02:13:29 -04:00
parent fed036be08
commit e2e7e8c0af
177 changed files with 1231 additions and 1326 deletions

View File

@@ -1,27 +1,33 @@
import classnames from 'classnames/bind'
// Bind CSS Modules global variable `_s` to classNames module
const cx = classnames.bind(_s)
/**
* Renders a divider component
* @param {bool} [props.isInvisible] - to style the tab bar larger
* @param {bool} [props.isSmall] - if item is active
*/
export default class Divider extends PureComponent {
static propTypes = {
small: PropTypes.bool,
invisible: PropTypes.bool,
isInvisible: PropTypes.bool,
isSmall: PropTypes.bool,
}
render() {
const { small, invisible } = this.props
const { isSmall, isInvisible } = this.props
const classes = cx({
default: 1,
borderBottom1PX: !invisible,
borderColorSecondary2: !invisible,
borderBottom1PX: !isInvisible,
borderColorSecondary2: !isInvisible,
width100PC: 1,
mb15: !small,
my10: small || invisible,
mb15: !isSmall,
my10: isSmall || isInvisible,
})
return (
<div className={classes} />
)
return <div className={classes} />
}
}