diff options
Diffstat (limited to 'src/pages/_app.js')
| -rw-r--r-- | src/pages/_app.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/pages/_app.js b/src/pages/_app.js index 23172bfd..41d6c2f6 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -1,22 +1,19 @@ import '../styles/globals.css'; import NextProgress from 'next-progress'; -import { ToastContainer, Slide } from 'react-toastify'; -import 'react-toastify/dist/ReactToastify.css'; import { useRouter } from 'next/router'; import { AnimatePresence } from 'framer-motion'; +import { Toaster } from "react-hot-toast"; function MyApp({ Component, pageProps }) { const router = useRouter(); return ( <> - <ToastContainer - position='top-center' - autoClose={5000} - theme='light' - closeOnClick={false} - transition={Slide} - limit={1} + <Toaster + position="top-center" + toastOptions={{ + duration: 3000, + }} /> <NextProgress color="#D7A30A" options={{ showSpinner: false }} /> <AnimatePresence |
