mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +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,
|
||||
}}
|
||||
/>
|
||||
<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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue