mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 23:54:13 +08:00
feat(babel6): update unused prop syntax
This commit is contained in:
parent
9355a2635d
commit
09e9c80af4
2 changed files with 5 additions and 3 deletions
|
@ -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>
|
||||
)
|
||||
|
|
2
src/pro
2
src/pro
|
@ -1 +1 @@
|
|||
Subproject commit c4244e4845241558ba17a9419551a44de37b2fa8
|
||||
Subproject commit ba395a9cf8757a442d09862621b1bc91b52f8fa7
|
Loading…
Reference in a new issue