!
This commit is contained in:
parent
8d8129715b
commit
9e16c559ea
@ -2,7 +2,6 @@ import PropTypes from 'prop-types';
|
||||
import { Container } from 'react-bootstrap';
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
import { Outlet } from 'react-router-dom';
|
||||
import { CartProvider } from './components/cart/CartContext.jsx';
|
||||
import Footer from './components/footer/Footer.jsx';
|
||||
import Navigation from './components/navigation/Navigation.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 }) => {
|
||||
return (
|
||||
<AuthProvider>
|
||||
<CartProvider>
|
||||
<Navigation routes={routes}></Navigation>
|
||||
<Container className='p-2' as='main' fluid>
|
||||
<Outlet />
|
||||
</Container>
|
||||
<Footer />
|
||||
<Toaster position='top-center' reverseOrder={true} />
|
||||
</CartProvider>
|
||||
</AuthProvider>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user