Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit fb35503

Browse files
committed
test: update snapshots and providers
1 parent 12befdd commit fb35503

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/styled/src/styled.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ export const createStyled: CreateStyled = (
8686
let mergedProps = { ...props, ...restAttrs }
8787

8888
let className = options?.__label
89-
? `${cache.key}-${
90-
options?.__label || typeof tag === "string" ? tag : "element"
91-
} `
89+
? `${cache.key}-${options?.__label || typeof tag === "string" ? tag : "element"
90+
} `
9291
: ``
9392
const FinalTag = as || baseTag
9493
const classInterpolations = [] as string[]
@@ -167,7 +166,7 @@ export const createStyled: CreateStyled = (
167166
</style>
168167
)
169168
}
170-
return (
169+
return () => (
171170
<>
172171
{possiblyStyleElement}
173172
{StyledElement}
@@ -177,9 +176,8 @@ export const createStyled: CreateStyled = (
177176

178177
StyledComponent._name =
179178
identifierName === undefined
180-
? `Styled${
181-
typeof baseTag === "string" ? baseTag : baseTag.name || "Component"
182-
}`
179+
? `Styled${typeof baseTag === "string" ? baseTag : baseTag.name || "Component"
180+
}`
183181
: identifierName
184182

185183
StyledComponent.__emotion_real = StyledComponent

0 commit comments

Comments
 (0)