Merge pull request #775 from aleksanb/patch-1

Pass down theme from Card title to nested Avatar
old
Javi Velasco 2016-09-19 10:07:48 +02:00 committed by GitHub
commit ffdd6a214e
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ const factory = (Avatar) => {
return (
<div className={classes} {...other}>
{typeof avatar === 'string' ? <Avatar image={avatar} /> : avatar}
{typeof avatar === 'string' ? <Avatar image={avatar} theme={theme} /> : avatar}
<div>
{title && <h5 className={theme.title}>{title}</h5>}
{children && typeof children === 'string' && (