diff --git a/frontend/.storybook/chkDecorator.tsx b/frontend/.storybook/chkDecorator.tsx index 16f2fbf72..771215099 100644 --- a/frontend/.storybook/chkDecorator.tsx +++ b/frontend/.storybook/chkDecorator.tsx @@ -1,9 +1,11 @@ import "normalize.css"; import React from "react"; +import styled from "styled-components"; import { BrowserRouter } from "react-router-dom"; import { makeDecorator } from "@storybook/addons"; import GlobalStyle from "../src/constants/styles/global"; +import { ChkThemeProvider } from "../src/theme/ChkThemeProvider"; export const chkDecorator = makeDecorator({ name: "withSomething", @@ -11,11 +13,21 @@ export const chkDecorator = makeDecorator({ wrapper: (storyFn, context) => { return ( - <> - {storyFn(context)} + + {storyFn(context)} - + ); } }); + +const Spacer = styled.div` + margin: 1rem; + > * { + margin-right: 1rem; + } + p { + margin-bottom: 0.5rem; + } +`; diff --git a/frontend/src/components/App/index.tsx b/frontend/src/components/App/index.tsx index f05e113ff..e56d924dc 100644 --- a/frontend/src/components/App/index.tsx +++ b/frontend/src/components/App/index.tsx @@ -8,6 +8,7 @@ import Main from "@/layouts/Main"; import Footer from "@/layouts/Footer"; import { isDevelopment } from "@/utils"; import { CHK } from "@/constants/url"; +import { ChkThemeProvider } from "@/theme/ChkThemeProvider"; export default () => ( ( new RootStore(isDevelopment() ? CHK.BACK_END.DEV : CHK.BACK_END.PROD) } > -
-
-