Added icons to sidebar buttons and cleaned up code

This commit is contained in:
Keannu Christian Bernasol 2023-02-16 14:22:40 +08:00
parent c1c9444d33
commit c7e3687544
9 changed files with 195 additions and 7 deletions

View file

@ -5,15 +5,21 @@ import styles from "../../styles";
export interface props {
name: string;
onClick: any;
children: React.ReactNode;
}
export default function SidebarButton(props: props) {
return (
<div style={{ display: "flex", paddingBottom: 16 }}>
<div
style={{
paddingBottom: 16,
}}
>
<Button
onClick={props.onClick}
variant="contained"
style={styles.sidebar_button}
>
{props.children}
<p style={styles.text}>{props.name}</p>
</Button>
</div>