This commit is contained in:
DyCTaTOR 2024-01-12 15:42:02 +04:00
parent 8d8129715b
commit 9e16c559ea

View File

@ -2,7 +2,6 @@ import PropTypes from 'prop-types';
import { Container } from 'react-bootstrap'; import { Container } from 'react-bootstrap';
import { Toaster } from 'react-hot-toast'; import { Toaster } from 'react-hot-toast';
import { Outlet } from 'react-router-dom'; import { Outlet } from 'react-router-dom';
import { CartProvider } from './components/cart/CartContext.jsx';
import Footer from './components/footer/Footer.jsx'; import Footer from './components/footer/Footer.jsx';
import Navigation from './components/navigation/Navigation.jsx'; import Navigation from './components/navigation/Navigation.jsx';
import { AuthProvider } from './components/logins/login/context/AuthContext.jsx'; import { AuthProvider } from './components/logins/login/context/AuthContext.jsx';
@ -10,14 +9,12 @@ import { AuthProvider } from './components/logins/login/context/AuthContext.jsx'
const App = ({ routes }) => { const App = ({ routes }) => {
return ( return (
<AuthProvider> <AuthProvider>
<CartProvider>
<Navigation routes={routes}></Navigation> <Navigation routes={routes}></Navigation>
<Container className='p-2' as='main' fluid> <Container className='p-2' as='main' fluid>
<Outlet /> <Outlet />
</Container> </Container>
<Footer /> <Footer />
<Toaster position='top-center' reverseOrder={true} /> <Toaster position='top-center' reverseOrder={true} />
</CartProvider>
</AuthProvider> </AuthProvider>
); );
}; };