Skip to content

Commit

Permalink
♻️ Move rule inside style function body
Browse files Browse the repository at this point in the history
  • Loading branch information
exah committed Mar 7, 2019
1 parent f00ad51 commit 46c910e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export const style = ({
scale,
getter,
prop = cssProp,
getValue = themeKey ? themeValue({ themeKey, transformValue, scale, getter }) : undefined,
rule = createRule({ cssProp, getValue })
getValue = themeKey ? themeValue({ themeKey, transformValue, scale, getter }) : undefined
}) => createStyles({
[prop]: rule
[prop]: createRule({ cssProp, getValue })
})

0 comments on commit 46c910e

Please sign in to comment.