diff --git a/src/App.tsx b/src/App.tsx
index 591c26a..acbbb53 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -2,11 +2,11 @@ import React from "react";
import Dashboard from "./Routes/Dashboard/Dashboard";
import Error from "./Routes/Error/Error";
import Products from "./Routes/Products/Products";
+import Logs from "./Routes/Logs/Logs";
import Container from "./Components/Container/Container";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import Store from "./Plugins/Redux/Store/Store";
import { Provider } from "react-redux";
-import Inventory from "./Routes/Inventory/Inventory";
import AddProduct from "./Routes/Products/AddProduct/AddProduct";
import EditProduct from "./Routes/Products/EditProduct/EditProduct";
@@ -33,10 +33,10 @@ const router = createBrowserRouter([
),
},
{
- path: "/Inventory",
+ path: "/Logs",
element: (
-
+
),
},
diff --git a/src/components/ColoredCube/ColoredCube.tsx b/src/Components/ColoredCube/ColoredCube.tsx
similarity index 100%
rename from src/components/ColoredCube/ColoredCube.tsx
rename to src/Components/ColoredCube/ColoredCube.tsx
diff --git a/src/components/Container/Container.tsx b/src/Components/Container/Container.tsx
similarity index 100%
rename from src/components/Container/Container.tsx
rename to src/Components/Container/Container.tsx
diff --git a/src/components/Header/Header.tsx b/src/Components/Header/Header.tsx
similarity index 100%
rename from src/components/Header/Header.tsx
rename to src/Components/Header/Header.tsx
diff --git a/src/components/Icons/AppLogo/AppLogo.tsx b/src/Components/Icons/AppLogo/AppLogo.tsx
similarity index 100%
rename from src/components/Icons/AppLogo/AppLogo.tsx
rename to src/Components/Icons/AppLogo/AppLogo.tsx
diff --git a/src/components/Icons/HomeIcon/HomeIcon.tsx b/src/Components/Icons/HomeIcon/HomeIcon.tsx
similarity index 100%
rename from src/components/Icons/HomeIcon/HomeIcon.tsx
rename to src/Components/Icons/HomeIcon/HomeIcon.tsx
diff --git a/src/components/Icons/InventoryIcon/InventoryIcon.tsx b/src/Components/Icons/InventoryIcon/InventoryIcon.tsx
similarity index 100%
rename from src/components/Icons/InventoryIcon/InventoryIcon.tsx
rename to src/Components/Icons/InventoryIcon/InventoryIcon.tsx
diff --git a/src/components/Icons/LogoutIcon/LogoutIcon.tsx b/src/Components/Icons/LogoutIcon/LogoutIcon.tsx
similarity index 100%
rename from src/components/Icons/LogoutIcon/LogoutIcon.tsx
rename to src/Components/Icons/LogoutIcon/LogoutIcon.tsx
diff --git a/src/components/Icons/LogsIcon/LogsIcon.tsx b/src/Components/Icons/LogsIcon/LogsIcon.tsx
similarity index 100%
rename from src/components/Icons/LogsIcon/LogsIcon.tsx
rename to src/Components/Icons/LogsIcon/LogsIcon.tsx
diff --git a/src/components/Icons/LowStockIcon/LowStockIcon.tsx b/src/Components/Icons/LowStockIcon/LowStockIcon.tsx
similarity index 100%
rename from src/components/Icons/LowStockIcon/LowStockIcon.tsx
rename to src/Components/Icons/LowStockIcon/LowStockIcon.tsx
diff --git a/src/components/Icons/NotFoundIcon/NotFoundIcon.tsx b/src/Components/Icons/NotFoundIcon/NotFoundIcon.tsx
similarity index 100%
rename from src/components/Icons/NotFoundIcon/NotFoundIcon.tsx
rename to src/Components/Icons/NotFoundIcon/NotFoundIcon.tsx
diff --git a/src/components/Icons/ProductsIcon/ProductsIcon.tsx b/src/Components/Icons/ProductsIcon/ProductsIcon.tsx
similarity index 100%
rename from src/components/Icons/ProductsIcon/ProductsIcon.tsx
rename to src/Components/Icons/ProductsIcon/ProductsIcon.tsx
diff --git a/src/components/Icons/RecentlyAddedIcon/RecentlyAddedIcon.tsx b/src/Components/Icons/RecentlyAddedIcon/RecentlyAddedIcon.tsx
similarity index 100%
rename from src/components/Icons/RecentlyAddedIcon/RecentlyAddedIcon.tsx
rename to src/Components/Icons/RecentlyAddedIcon/RecentlyAddedIcon.tsx
diff --git a/src/components/Icons/StatsIcon/StatsIcon.tsx b/src/Components/Icons/StatsIcon/StatsIcon.tsx
similarity index 100%
rename from src/components/Icons/StatsIcon/StatsIcon.tsx
rename to src/Components/Icons/StatsIcon/StatsIcon.tsx
diff --git a/src/components/Icons/TotalProductsIcon/TotalProductsIcon.tsx b/src/Components/Icons/TotalProductsIcon/TotalProductsIcon.tsx
similarity index 100%
rename from src/components/Icons/TotalProductsIcon/TotalProductsIcon.tsx
rename to src/Components/Icons/TotalProductsIcon/TotalProductsIcon.tsx
diff --git a/src/components/Login/Login.tsx b/src/Components/Login/Login.tsx
similarity index 100%
rename from src/components/Login/Login.tsx
rename to src/Components/Login/Login.tsx
diff --git a/src/components/Logout/Logout.tsx b/src/Components/Logout/Logout.tsx
similarity index 80%
rename from src/components/Logout/Logout.tsx
rename to src/Components/Logout/Logout.tsx
index 1fcfef1..4b99181 100644
--- a/src/components/Logout/Logout.tsx
+++ b/src/Components/Logout/Logout.tsx
@@ -3,6 +3,7 @@ import { useSelector, useDispatch } from "react-redux";
import { toggle } from "../../Features/Login/LoginSlice";
import { Button } from "@mui/material";
import styles from "../../styles";
+import { useNavigate } from "react-router-dom";
export interface state {
logged_in: {
@@ -16,16 +17,17 @@ export interface props {
export default function Logout(props: props) {
const logged_in = useSelector((state: state) => state.logged_in.value);
const dispatch = useDispatch();
+ const navigate = useNavigate();
- async function login() {
+ async function logout() {
await dispatch(toggle());
- await console.log("test " + logged_in);
+ navigate("/");
}
return (