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,
}}
/>
<div style={styles.flex_row}>
<DrawerButton
onClick={() => {
navigate("/dashboard");
}}
icon={
<HomeIcon
style={{
width: "48px",
@ -67,16 +71,9 @@ export default function Sidebar() {
justifySelf: "center",
}}
/>
<p
style={{
...styles.text_light,
...styles.text_M,
}}
>
Dashboard
</p>
</div>
<div style={styles.flex_row}>
}
label={"Dashboard"}
/>
<DrawerButton
onClick={async () => {
navigate("/");
@ -109,6 +106,5 @@ export default function Sidebar() {
label={"Log out"}
/>
</div>
</div>
);
}