gab-social/app/javascript/gabsocial/components/divider.js
mgabdev 7e47bb1d9c Removed prop-types global import, added to files directly
• Removed:
- prop-types global import, added to files directly
2020-08-17 15:59:29 -05:00

32 lines
721 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import { CX } from '../constants'
/**
* 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 React.PureComponent {
static propTypes = {
isInvisible: PropTypes.bool,
isSmall: PropTypes.bool,
}
render() {
const { isSmall, isInvisible } = this.props
const classes = CX({
default: 1,
borderBottom1PX: !isInvisible,
borderColorSecondary: !isInvisible,
width100PC: 1,
mb15: !isSmall,
my10: isSmall || isInvisible,
})
return <div className={classes} />
}
}