Skip to content

Commit 0c0b2de

Browse files
use props from constructor
1 parent 3c4a2e4 commit 0c0b2de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/themr.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
6868
composeTheme: optionComposeTheme
6969
}
7070

71-
constructor(...args) {
72-
super(...args)
73-
this.theme_ = this.calcTheme(this.props)
71+
constructor(props, ...args) {
72+
super(props, ...args)
73+
this.theme_ = this.calcTheme(props)
7474
}
7575

7676
getWrappedInstance() {

0 commit comments

Comments
 (0)