Pass the theme prop to TableRow child components

Fixes: #1805
old
Ying Zuo 2018-03-01 20:46:00 -08:00
parent a841d2a9c4
commit 73b2594922
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;