mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-17 06:09:25 +08:00
Improved drawer buttons
This commit is contained in:
parent
d878cfb1aa
commit
ff1d465d3f
1 changed files with 49 additions and 53 deletions
|
@ -56,7 +56,11 @@ export default function Sidebar() {
|
||||||
marginBottom: 8,
|
marginBottom: 8,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div style={styles.flex_row}>
|
<DrawerButton
|
||||||
|
onClick={() => {
|
||||||
|
navigate("/dashboard");
|
||||||
|
}}
|
||||||
|
icon={
|
||||||
<HomeIcon
|
<HomeIcon
|
||||||
style={{
|
style={{
|
||||||
width: "48px",
|
width: "48px",
|
||||||
|
@ -67,16 +71,9 @@ export default function Sidebar() {
|
||||||
justifySelf: "center",
|
justifySelf: "center",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<p
|
}
|
||||||
style={{
|
label={"Dashboard"}
|
||||||
...styles.text_light,
|
/>
|
||||||
...styles.text_M,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Dashboard
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div style={styles.flex_row}>
|
|
||||||
<DrawerButton
|
<DrawerButton
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
navigate("/");
|
navigate("/");
|
||||||
|
@ -109,6 +106,5 @@ export default function Sidebar() {
|
||||||
label={"Log out"}
|
label={"Log out"}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue