fix table fullwidth classes
This commit is contained in:
parent
4e7c062aee
commit
95023d6247
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user