mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-05-14 18:41:06 +08:00
Added icons to sidebar buttons and cleaned up code
This commit is contained in:
parent
c1c9444d33
commit
c7e3687544
9 changed files with 195 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue