From 38f90a51b0cc3ad8912acc32b6322ef6cb33d44a Mon Sep 17 00:00:00 2001 From: a-honey Date: Fri, 2 Feb 2024 00:21:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20charkra=20theme=20=EC=A0=84=EC=97=AD=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/atoms/Toggle.tsx | 19 ++----------------- src/pages/_app.tsx | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/src/components/atoms/Toggle.tsx b/src/components/atoms/Toggle.tsx index 56ad1b0..875f1c6 100644 --- a/src/components/atoms/Toggle.tsx +++ b/src/components/atoms/Toggle.tsx @@ -1,27 +1,12 @@ import React from 'react'; -import { extendTheme, ThemeProvider, CSSReset, Switch } from '@chakra-ui/react'; - -const customTheme = extendTheme({ - colors: { - primary2: { - 500: '#3CAA8D', - }, - }, -}); +import { Switch } from '@chakra-ui/react'; const Toggle: React.FC<{ isToggleOn?: boolean; onClick?: () => void; }> = ({ isToggleOn, onClick }) => { return ( - - - - + ); }; diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 90b16a2..a39fb8c 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,3 +1,4 @@ +import { ChakraProvider, CSSReset, extendTheme } from '@chakra-ui/react'; import Layout from '@/components/templates/Layout'; import '@/styles/globals.css'; import type { AppProps } from 'next/app'; @@ -6,12 +7,21 @@ import 'dayjs/locale/ko'; import dayjs from 'dayjs'; dayjs.locale('ko'); +const theme = extendTheme({ + colors: { + primary2: { 500: '#3CAA8D' }, + }, +}); + export default function App({ Component, pageProps }: AppProps): JSX.Element { return ( - - - + + + + + + ); }