From ce9f0a3cfe796b105dc3e31eb9f9e15c9aef7b94 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 13 Aug 2021 21:09:04 +0200 Subject: [PATCH] Fix issue with ToastContainer classes --- components/Layout.tsx | 27 +-------------------------- next-env.d.ts | 3 +++ 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/components/Layout.tsx b/components/Layout.tsx index 9657e1e..f9e6227 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -25,24 +25,6 @@ type LayoutProps = { const Layout = ({ children }: LayoutProps): JSX.Element => { const { user, signOut } = useAuth(); - type toast = { - success: string; - error: string; - info: string; - warning: string; - default: string; - dark: string; - }; - - const toastStyle: toast = { - // Style your toast elements here - success: 'bg-accent', - error: 'bg-red-600', - info: 'bg-gray-600', - warning: 'bg-orange-400', - default: 'bg-primary', - dark: 'bg-white-600 font-gray-300', - }; return (
@@ -57,14 +39,7 @@ const Layout = ({ children }: LayoutProps): JSX.Element => {
diff --git a/next-env.d.ts b/next-env.d.ts index c6643fd..9bc3dd4 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,3 +1,6 @@ /// /// /// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information.