mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-05-13 01:51:06 +08:00
Readded directories with uppercase
This commit is contained in:
parent
d54e6be430
commit
101a8e8ae6
21 changed files with 737 additions and 0 deletions
27
src/Components/SidebarButton/SidebarButton.tsx
Normal file
27
src/Components/SidebarButton/SidebarButton.tsx
Normal file
|
@ -0,0 +1,27 @@
|
|||
import React from "react";
|
||||
import { Button } from "@mui/material";
|
||||
import styles from "../../styles";
|
||||
|
||||
export interface props {
|
||||
name: string;
|
||||
onClick: any;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
export default function SidebarButton(props: props) {
|
||||
return (
|
||||
<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