feat(babel6): update unused prop syntax

This commit is contained in:
Evan Morikawa 2016-05-06 12:13:07 -07:00
parent 9355a2635d
commit 09e9c80af4
2 changed files with 5 additions and 3 deletions

View file

@ -14,10 +14,12 @@ const TablePropTypes = {
}),
}
export function TableCell({className = '', isHeader, children, ...props}) {
export function TableCell(props) {
const {className, isHeader, children} = props;
const continuedProps = _.omit(props, "className", "isHeader", "children")
const CellTag = isHeader ? 'th' : 'td'
return (
<CellTag {...props} className={`table-cell ${className}`} >
<CellTag {...continuedProps} className={`table-cell ${className}`} >
{children}
</CellTag>
)

@ -1 +1 @@
Subproject commit c4244e4845241558ba17a9419551a44de37b2fa8
Subproject commit ba395a9cf8757a442d09862621b1bc91b52f8fa7