Skip to content

Commit f0225cd

Browse files
committed
Remove composeTheme prop spreading
1 parent 08ca2a4 commit f0225cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/themr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ export default (componentName, localTheme, options = DEFAULT_OPTIONS) => (Themed
4646
}
4747

4848
render() {
49+
const { composeTheme } = this.props
4950
return React.createElement(ThemedComponent, {
5051
...this.props,
51-
theme: this.props.composeTheme
52+
theme: composeTheme
5253
? this.getTheme()
5354
: this.getThemeNotComposed()
5455
})

0 commit comments

Comments
 (0)