mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-16 22:29:24 +08:00
Fix sidebar (again)
This commit is contained in:
parent
c08d927f01
commit
308f193756
2 changed files with 32 additions and 22 deletions
|
@ -57,34 +57,45 @@ export default function Sidebar() {
|
|||
);
|
||||
} else {
|
||||
return (
|
||||
<div style={styles.sidebar_wrapper}>
|
||||
<div style={styles.sidebar_container}>
|
||||
<div
|
||||
style={{
|
||||
position: "relative",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
flexDirection: "row",
|
||||
justifyContent: "flex-end",
|
||||
}}
|
||||
>
|
||||
<SidebarButton onClick={() => navigate("/")} name="Dashboard">
|
||||
<HomeIcon size={4} color="white" />
|
||||
</SidebarButton>
|
||||
<SidebarButton onClick={() => navigate("/Products")} name="Products">
|
||||
<ProductsIcon size={4} color="white" />
|
||||
</SidebarButton>
|
||||
<SidebarButton
|
||||
onClick={() => navigate("/Inventory")}
|
||||
name="Inventory"
|
||||
<div
|
||||
style={{
|
||||
position: "relative",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "flex-start",
|
||||
}}
|
||||
>
|
||||
<InventoryIcon size={4} color="white" />
|
||||
</SidebarButton>
|
||||
<SidebarButton onClick={() => navigate("/Logs")} name="Logs">
|
||||
<LogsIcon size={4} color="white" />
|
||||
</SidebarButton>
|
||||
<SidebarButton onClick={() => navigate("/")} name="Dashboard">
|
||||
<HomeIcon size={4} color="white" />
|
||||
</SidebarButton>
|
||||
<SidebarButton
|
||||
onClick={() => navigate("/Products")}
|
||||
name="Products"
|
||||
>
|
||||
<ProductsIcon size={4} color="white" />
|
||||
</SidebarButton>
|
||||
<SidebarButton
|
||||
onClick={() => navigate("/Inventory")}
|
||||
name="Inventory"
|
||||
>
|
||||
<InventoryIcon size={4} color="white" />
|
||||
</SidebarButton>
|
||||
<SidebarButton onClick={() => navigate("/Logs")} name="Logs">
|
||||
<LogsIcon size={4} color="white" />
|
||||
</SidebarButton>
|
||||
<Logout>
|
||||
<LogoutIcon size={4} color="white" />
|
||||
</Logout>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Logout>
|
||||
<LogoutIcon size={4} color="white" />
|
||||
</Logout>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -141,7 +141,6 @@ const styles: { [key: string]: React.CSSProperties } = {
|
|||
paddingLeft: "2vh",
|
||||
backgroundColor: "#3d4848",
|
||||
},
|
||||
sidebar_wrapper: {},
|
||||
};
|
||||
|
||||
export default styles;
|
||||
|
|
Loading…
Reference in a new issue