✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix: toast at auth
AykutSaracf7e2535a57cc
diff --git a/src/layout/EditorWrapper/index.tsx b/src/layout/EditorWrapper/index.tsxindex 196fa72e..8a46a5e4 100644--- a/src/layout/EditorWrapper/index.tsx+++ b/src/layout/EditorWrapper/index.tsx@@ -6,7 +6,6 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { lightTheme, darkTheme } from "src/constants/theme";import useConfig from "src/store/useConfig";-const Toaster = dynamic(() => import("react-hot-toast").then(c => c.Toaster));const ModalController = dynamic(() => import("src/layout/ModalController"));const queryClient = new QueryClient({@@ -25,21 +24,6 @@ export const EditorWrapper: React.FC<{return (<ThemeProvider theme={darkmodeEnabled ? darkTheme : lightTheme}>- <Toaster- position="bottom-right"- containerStyle={{- bottom: 34,- right: 8,- fontSize: 14,- }}- toastOptions={{- style: {- background: "#4D4D4D",- color: "#B9BBBE",- borderRadius: 4,- },- }}- /><MantineProvider forceColorScheme={darkmodeEnabled ? "dark" : "light"}><QueryClientProvider client={queryClient}><ModalController />diff --git a/src/pages/_app.tsx b/src/pages/_app.tsxindex f1f756e6..84c96647 100644--- a/src/pages/_app.tsx+++ b/src/pages/_app.tsx@@ -13,6 +13,8 @@ import { lightTheme } from "src/constants/theme";import { supabase } from "src/lib/api/supabase";import useUser from "src/store/useUser";+const Toaster = dynamic(() => import("react-hot-toast").then(c => c.Toaster));+const mantineTheme = createTheme({primaryShade: 8,});@@ -54,6 +56,21 @@ function JsonCrack({ Component, pageProps }: AppProps) {<MantineProvider theme={mantineTheme}><ThemeProvider theme={lightTheme}>+ <Toaster+ position="bottom-right"+ containerStyle={{+ bottom: 34,+ right: 8,+ fontSize: 14,+ }}+ toastOptions={{+ style: {+ background: "#4D4D4D",+ color: "#B9BBBE",+ borderRadius: 4,+ },+ }}+ /><GlobalStyle /><Component {...pageProps} /><ExternalMode />