Skip to content

Commit 554b5fc

Browse files
author
Victor Saiz
committed
no mutations
1 parent e5e2085 commit 554b5fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/themr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
8585
function themeable(style = {}, theme) {
8686
if (!theme) return style
8787
return Object.keys(theme).reduce((result, key) => (
88-
Object.assign({}, result, { [key]:
88+
Object.assign(result, { [key]:
8989
style[key] && theme[key].indexOf(style[key]) === -1
9090
? `${style[key]} ${theme[key]}`
9191
: theme[key] || style[key]
92-
})), style)
92+
})), Object.assign({}, style))
9393
}
9494

9595
function validateComposeOption(composeTheme) {

0 commit comments

Comments
 (0)