Restrict all pages to only logged in users

This commit is contained in:
Keannu Christian Bernasol 2023-03-06 14:42:17 +08:00
parent 18d9fbe1ef
commit 9cdca33783
6 changed files with 40 additions and 2 deletions

View file

@ -45,13 +45,15 @@ export default function Sidebar() {
>
<ProductsIcon size={48} color="white" />
</SidebarButton>
<SidebarButton
onClick={() => navigate("/Inventory")}
name="Inventory"
>
<InventoryIcon size={48} color="white" />
</SidebarButton>
<SidebarButton onClick={() => navigate("/Logs")} name="Logs">
<LogsIcon size={48} color="white" />
</SidebarButton>
</div>
</div>
</div>