diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-22 11:03:34 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-22 11:03:34 +0700 |
| commit | f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c (patch) | |
| tree | 253dcf854a3c92e09ca846e86a09e5b4c5d16be1 /src/pages/_app.jsx | |
| parent | 3c559031623649a67825ff47f34512f0eb946861 (diff) | |
prettier
Diffstat (limited to 'src/pages/_app.jsx')
| -rw-r--r-- | src/pages/_app.jsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx index 33573480..0110576a 100644 --- a/src/pages/_app.jsx +++ b/src/pages/_app.jsx @@ -2,7 +2,7 @@ import '../styles/globals.css' import NextProgress from 'next-progress' import { useRouter } from 'next/router' import { AnimatePresence } from 'framer-motion' -import { Toaster } from "react-hot-toast" +import { Toaster } from 'react-hot-toast' import { QueryClient, QueryClientProvider } from 'react-query' const queryClient = new QueryClient() @@ -13,19 +13,15 @@ function MyApp({ Component, pageProps }) { return ( <> <Toaster - position="top-center" + position='top-center' toastOptions={{ duration: 3000, className: 'border border-gray_r-8' }} /> - <NextProgress color="#F01C21" options={{ showSpinner: false }} /> + <NextProgress color='#F01C21' options={{ showSpinner: false }} /> <QueryClientProvider client={queryClient}> - <AnimatePresence - mode='wait' - initial={false} - onExitComplete={() => window.scrollTo(0, 0)} - > + <AnimatePresence mode='wait' initial={false} onExitComplete={() => window.scrollTo(0, 0)}> <Component {...pageProps} key={router.asPath} /> </AnimatePresence> </QueryClientProvider> |
