From 1452537743f67a9381443edf5848fd090e16006b Mon Sep 17 00:00:00 2001 From: Brian Takita Date: Sun, 20 Feb 2022 23:46:08 -0600 Subject: [PATCH] fix: createGlobalStyles: TypeError: fn is not a function (#20) fixes https://github.com/solidjs/solid-styled-components/issues/19 --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 9e94b06..b33ca49 100644 --- a/src/index.js +++ b/src/index.js @@ -77,7 +77,7 @@ export const styled = new Proxy(makeStyled, { }) export function createGlobalStyles() { - const fn = styled.call({ g: 1 }, "div").apply(null, arguments); + const fn = makeStyled.call({ g: 1 }, "div").apply(null, arguments); return function GlobalStyles(props) { fn(props); return null;