diff --git a/Lab5/data.json b/Lab5/data.json index 50b2e59..fb53e45 100644 --- a/Lab5/data.json +++ b/Lab5/data.json @@ -4,7 +4,7 @@ "id": 0, "login": "dyctator", "password": "12345", - "role": "user" + "role": "admin" }, { "login": "user", diff --git a/Lab5/src/App.jsx b/Lab5/src/App.jsx index 5369184..33446e0 100644 --- a/Lab5/src/App.jsx +++ b/Lab5/src/App.jsx @@ -5,17 +5,20 @@ 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'; const App = ({ routes }) => { return ( - - - - - -