Skip to content

Commit 04f7c4e

Browse files
author
Markus Günther
committed
Fix: Fix linting issues in themr
1 parent bb273fc commit 04f7c4e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/components/themr.js

+8-10
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,19 @@ export default (componentName, localTheme, options = {}) => ThemedComponent => {
136136
const { composeTheme } = this.props
137137
return composeTheme === COMPOSE_SOFTLY
138138
? {
139-
...this.getContextTheme(),
140-
...config.localTheme,
141-
...this.getNamespacedTheme()
142-
}
139+
...this.getContextTheme(),
140+
...config.localTheme,
141+
...this.getNamespacedTheme()
142+
}
143143
: themeable(
144-
themeable(this.getContextTheme(), config.localTheme),
145-
this.getNamespacedTheme()
146-
)
144+
themeable(this.getContextTheme(), config.localTheme),
145+
this.getNamespacedTheme()
146+
)
147147
}
148148

149149
calcTheme() {
150150
const { composeTheme } = this.props
151-
return composeTheme
152-
? this.getTheme()
153-
: this.getThemeNotComposed()
151+
return composeTheme ? this.getTheme() : this.getThemeNotComposed()
154152
}
155153

156154
shouldComponentUpdate(prevProps) {

0 commit comments

Comments
 (0)