diff options
| author | Rafi Zadanly <rafizadanly@gmail.com> | 2022-12-16 11:22:45 +0700 |
|---|---|---|
| committer | Rafi Zadanly <rafizadanly@gmail.com> | 2022-12-16 11:22:45 +0700 |
| commit | f45dee703450c42521884f8e0da8ae49f652b8c6 (patch) | |
| tree | 184ef403a9808e05823e9e2a93d0e24dae7b385c /src/pages/_app.js | |
| parent | a03d150a2816ed7f901d3acf0ceb26c4025365e1 (diff) | |
item cart delete confirmation
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 |
