diff --git a/app/toastify-provider.tsx b/app/toastify-provider.tsx index 0607d53..91347a0 100644 --- a/app/toastify-provider.tsx +++ b/app/toastify-provider.tsx @@ -4,12 +4,14 @@ import 'react-toastify/dist/ReactToastify.css'; // import '../../app/globals.css'; import { ToastContainer } from 'react-toastify'; import React from 'react'; +import { useTheme } from 'next-themes'; interface ToastProviderProps { children: React.ReactNode; } export default function ToastProvider({ children }: ToastProviderProps) { + const { theme } = useTheme(); return ( <> @@ -24,7 +26,7 @@ export default function ToastProvider({ children }: ToastProviderProps) { pauseOnFocusLoss draggable pauseOnHover - theme="dark" + theme={ theme } /> );