Skip to content

Commit

Permalink
Revert unwanted changes introduced by react-codemod transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
yamafaktory committed Apr 18, 2017
1 parent 9e536a6 commit 76758a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function vars(value = {}) {
return {
glamorCssVars: {
...this.context.glamorCssVars,
...((typeof value === 'function' ? value(this.props) : value))
...typeof value === 'function' ? value(this.props) : value
}
}
}
Expand Down Expand Up @@ -95,7 +95,7 @@ export function makeTheme() {
[key]: [ typeof _style === 'function' ?
_style(this.props) :
_style,
...(this.context[key] || []) ]
...this.context[key] || [] ]
}
}
render() {
Expand Down

0 comments on commit 76758a0

Please sign in to comment.