Skip to content

Commit

Permalink
Remove trim and shorten declaration processing
Browse files Browse the repository at this point in the history
  • Loading branch information
cdonohue committed Jun 1, 2019
1 parent 9cf17d2 commit 4df8b9d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/Box/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,10 @@ function Box(props) {
const { declarations, ignoredClasses } = getDeclarationsForClasses(
className
)
const processedDeclarations = processDeclarations(
declarations,
(declaration) =>
css`
${declaration}
`
)
const processedDeclarations = processDeclarations(declarations, css)

remainingProps.css = processedDeclarations
remainingProps.className = ignoredClasses.join(" ").trim()
remainingProps.className = ignoredClasses.join(" ")
}

return jsx(is, remainingProps, ...children)
Expand Down

0 comments on commit 4df8b9d

Please sign in to comment.