Skip to content

Commit 1d40022

Browse files
author
John Richard Chipps-Harding
authored
Dry flattenCss (#28)
1 parent e6e46ab commit 1d40022

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ export const styled = <
6565
);
6666

6767
matches.forEach((match) => {
68-
if (Array.isArray(match.css)) {
69-
componentStyles.push(match.css.join(" "));
70-
} else if (typeof match.css === "string") {
71-
componentStyles.push(match.css);
72-
}
68+
componentStyles.push(flattenCss(match.css as CSS));
7369
});
7470
}
7571

0 commit comments

Comments
 (0)