Skip to content

Commit 01f3a11

Browse files
committed
Fix
1 parent 246b3cd commit 01f3a11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/themr.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,17 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
116116
}
117117

118118
render() {
119-
const { ...rest } = this.props
120119
let renderedElement
121120

122121
if (optionWithRef) {
123122
renderedElement = React.createElement(ThemedComponent, {
124-
...rest,
123+
...this.props,
125124
ref: 'wrappedInstance',
126125
theme: this.theme_
127126
})
128127
} else {
129128
renderedElement = React.createElement(ThemedComponent, {
130-
...rest,
129+
...this.props,
131130
theme: this.theme_
132131
})
133132
}

0 commit comments

Comments
 (0)