Merge pull request #618 from randycoulman/list-item-theme

Pass the theme from ListItem to ListItemLayout
old
Javi Velasco 2016-07-07 20:29:04 +02:00 committed by GitHub
commit 1a190b6876
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ const factory = (ripple, ListItemLayout, ListItemContent) => {
render () {
const {className, onMouseDown, to, onClick, ripple: hasRipple, theme, ...other} = this.props; //eslint-disable-line no-unused-vars
const children = this.groupChildren();
const content = <ListItemLayout {...children} {...other}/>;
const content = <ListItemLayout theme={theme} {...children} {...other}/>;
return (
<li className={`${theme.listItem} ${className}`} onClick={this.handleClick} onMouseDown={onMouseDown}>
{to ? <a href={this.props.to}>{content}</a> : content}