-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
38 lines (34 loc) · 1.26 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { QueryClient, QueryClientProvider } from 'react-query'
import { Routes, Route } from 'react-router-dom'
import { Container } from 'react-bootstrap'
import { Home } from './pages/Home'
import { Store } from './pages/Store'
import { About } from './pages/About'
import { Navbar } from './components/Navbar'
import { ShoppingCartProvider } from './context/ShoppingCartContext'
import { SearchProductsProvider } from './context/SearchProductsContext'
import { FavoritesProvider } from './context/FavoritesContext'
import { Favorites } from './pages/Favorites'
const queryClient = new QueryClient()
function App() {
return (
<QueryClientProvider client={queryClient}>
<SearchProductsProvider>
<FavoritesProvider>
<ShoppingCartProvider>
<Navbar/>
<Container className='mb-4'>
<Routes>
<Route path='/' element={<Home/>}/>
<Route path='/store' element={<Store/>}/>
<Route path='/about' element={<About/>}/>
<Route path='/favorites' element={<Favorites/>}/>
</Routes>
</Container>
</ShoppingCartProvider>
</FavoritesProvider>
</SearchProductsProvider>
</QueryClientProvider>
)
}
export default App