Skip to content

Commit

Permalink
fix: properly forward props, closes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist authored Nov 4, 2019
1 parent 7cc147e commit e6bd6f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ const createStyled = (tag, options = {}) => {
}
},

render(h, { data, children, parent, props, injections }) {
render(h, { data, children, parent, injections }) {
const cache = parent.$emotionCache
const { as, value, ...restAttrs } = data.attrs || {}

let className = data.staticClass ? `${data.staticClass} ` : ''
const finalTag = as || baseTag
const classInterpolations = []
const mergedProps = {
...props,
...data.attrs,
theme: injections.theme,
...parent.$evergarden
}
Expand Down Expand Up @@ -123,7 +123,6 @@ const createStyled = (tag, options = {}) => {
}` :
identifierName

Styled.props = tag.props
Styled.__emotion_real = Styled
Styled.__emotion_base = baseTag
Styled.__emotion_styles = styles
Expand Down

0 comments on commit e6bd6f1

Please sign in to comment.