Skip to content

Commit

Permalink
remove theme attribute (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocheshkov authored May 9, 2022
1 parent b07e4c5 commit 3437522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ function makeStyled(tag) {
return [pClassName, className].filter(Boolean).join(" ");
}
});
const [local, newProps] = splitProps(clone, ["as"]);
const [local, newProps] = splitProps(clone, ["as", "theme"]);
const createTag = local.as || tag;
let el;
if (typeof createTag === "function") {
el = createTag(newProps);
} else if (isServer) {
const [local, others] = splitProps(newProps, ["children"]);
const [local, others] = splitProps(newProps, ["children", "theme"]);
el = ssr(
[`<${createTag} `, ">", `</${createTag}>`],
ssrSpread(others),
Expand Down

0 comments on commit 3437522

Please sign in to comment.