Mehdi commited on
Commit
53bd884
·
verified ·
1 Parent(s): 83b05d4

Upload pages/_app.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. pages/_app.js +7 -29
pages/_app.js CHANGED
@@ -1,34 +1,12 @@
1
  import '../styles/globals.css'
2
- import { Toaster } from 'react-hot-toast'
3
- import { motion } from 'framer-motion'
4
 
5
- export default function App({ Component, pageProps }) {
6
  return (
7
- <>
8
  <Component {...pageProps} />
9
- <Toaster
10
- position="top-right"
11
- toastOptions={{
12
- duration: 4000,
13
- style: {
14
- background: '#1f2937',
15
- color: '#fff',
16
- border: '1px solid #374151',
17
- },
18
- success: {
19
- iconTheme: {
20
- primary: '#10b981',
21
- secondary: '#fff',
22
- },
23
- },
24
- error: {
25
- iconTheme: {
26
- primary: '#ef4444',
27
- secondary: '#fff',
28
- },
29
- },
30
-
31
- />
32
- </>
33
  )
34
- }
 
 
 
1
  import '../styles/globals.css'
2
+ import { CookiesProvider } from 'react-cookie'
 
3
 
4
+ function MyApp({ Component, pageProps }) {
5
  return (
6
+ <CookiesProvider>
7
  <Component {...pageProps} />
8
+ </CookiesProvider>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  )
10
+ }
11
+
12
+ export default MyApp