mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-05-14 18:41:06 +08:00
Added sidebar
This commit is contained in:
parent
17ea11a29c
commit
534993efc2
7 changed files with 98 additions and 12 deletions
21
src/components/SidebarButton/SidebarButton.tsx
Normal file
21
src/components/SidebarButton/SidebarButton.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
import React from "react";
|
||||
import { Button } from "@mui/material";
|
||||
import styles from "../../styles";
|
||||
|
||||
export interface props {
|
||||
name: string;
|
||||
onClick: any;
|
||||
}
|
||||
export default function SidebarButton(props: props) {
|
||||
return (
|
||||
<div style={{ display: "flex", paddingBottom: 16 }}>
|
||||
<Button
|
||||
onClick={props.onClick}
|
||||
variant="contained"
|
||||
style={styles.sidebar_button}
|
||||
>
|
||||
<p style={styles.text}>{props.name}</p>
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue