This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,8 @@ export const createStyled: CreateStyled = (
86
86
let mergedProps = { ...props , ...restAttrs }
87
87
88
88
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
+ } `
92
91
: ``
93
92
const FinalTag = as || baseTag
94
93
const classInterpolations = [ ] as string [ ]
@@ -167,7 +166,7 @@ export const createStyled: CreateStyled = (
167
166
</ style >
168
167
)
169
168
}
170
- return (
169
+ return ( ) => (
171
170
< >
172
171
{ possiblyStyleElement }
173
172
{ StyledElement }
@@ -177,9 +176,8 @@ export const createStyled: CreateStyled = (
177
176
178
177
StyledComponent . _name =
179
178
identifierName === undefined
180
- ? `Styled${
181
- typeof baseTag === "string" ? baseTag : baseTag . name || "Component"
182
- } `
179
+ ? `Styled${ typeof baseTag === "string" ? baseTag : baseTag . name || "Component"
180
+ } `
183
181
: identifierName
184
182
185
183
StyledComponent . __emotion_real = StyledComponent
You can’t perform that action at this time.
0 commit comments