Skip to content

Commit be0c33b

Browse files
committed
1 parent ceb27c6 commit be0c33b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/themr.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,11 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
9494
}
9595
}
9696

97-
function themeable(style = {}, theme) {
97+
export function themeable(style = {}, theme) {
9898
if (!theme) return style
9999
return Object.keys(theme).reduce((result, key) => (
100-
Object.assign(result, { [key]:
101-
style[key] && theme[key].indexOf(style[key]) === -1
102-
? `${style[key]} ${theme[key]}`
103-
: theme[key] || style[key]
104-
})), Object.assign({}, style))
100+
Object.assign(result, { [key]: `${style[key]} ${theme[key]}` })
101+
), Object.assign({}, style))
105102
}
106103

107104
function validateComposeOption(composeTheme) {

0 commit comments

Comments
 (0)