Merge pull request #1824 from yingzuo/passThemeProps
Pass the theme prop to TableRow child componentsold
commit
a473c948d7
|
@ -35,7 +35,7 @@ const factory = (Checkbox, TableCell) => {
|
|||
return (
|
||||
<tr {...other} className={_className}>
|
||||
{selectable && <TableCell className={theme.checkboxCell}>
|
||||
<Checkbox checked={selected} onChange={this.handleSelect} />
|
||||
<Checkbox theme={theme} checked={selected} onChange={this.handleSelect} />
|
||||
</TableCell>}
|
||||
{React.Children.map(children, (child, index) => {
|
||||
if (!child) return null;
|
||||
|
|
Loading…
Reference in New Issue