Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
feat: Add reset css
Browse files Browse the repository at this point in the history
  • Loading branch information
re-taro committed Dec 9, 2022
1 parent 493cede commit 9626a82
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/chakra.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { ChakraProvider } from "@chakra-ui/react";
import type { FC } from "react";
import type { FC, ReactNode } from "react";
import customTheme from "../styles/theme";

type ChakraProps = {
children: React.ReactNode;
children: ReactNode;
};

export const Chakra: FC<ChakraProps> = ({ children }) => (
<ChakraProvider theme={customTheme}>{children}</ChakraProvider>
<ChakraProvider theme={customTheme} resetCSS>
{children}
</ChakraProvider>
);

0 comments on commit 9626a82

Please sign in to comment.