fix table fullwidth classes

This commit is contained in:
Rodrigo Antinarelli 2020-03-23 19:00:10 -03:00 committed by James A. Petts
parent 4e7c062aee
commit 95023d6247

View File

@ -3,13 +3,19 @@ import PropTypes from 'prop-types';
import classnames from 'classnames'; import classnames from 'classnames';
const Table = ({ children, className, fullWidth, style }) => { const Table = ({ children, className, fullWidth, style }) => {
const classes = {
base: 'text-lg text-white',
fullWidth: {
true: 'w-full',
false: '',
},
};
return ( return (
<div <div
className={classnames( className={classnames(
'text-lg text-white', classes.base,
{ classes.fullWidth[fullWidth],
'w-full': fullWidth,
},
className className
)} )}
style={style} style={style}