Merge pull request #1824 from yingzuo/passThemeProps

Pass the theme prop to TableRow child components
old
Rubén Moya 2018-03-03 12:25:49 +01:00 committed by GitHub
commit a473c948d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;