Improved drawer buttons

This commit is contained in:
Keannu Bernasol 2023-11-19 18:37:30 +08:00
parent d878cfb1aa
commit ff1d465d3f

View file

@ -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>
); );
} }