missing files from previous commit
This commit is contained in:
parent
17293afd1e
commit
60aaf17af3
3 changed files with 54 additions and 0 deletions
9
src/GarageApp/modules/DummyButton.tsx
Normal file
9
src/GarageApp/modules/DummyButton.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import Button from '@mui/material/Button';
|
||||||
|
|
||||||
|
export default function TextButtons() {
|
||||||
|
return (
|
||||||
|
<Button variant="contained">Temp Button</Button>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
13
src/ProjectButtons.json
Normal file
13
src/ProjectButtons.json
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"text": "GarageApp",
|
||||||
|
"href": "GarageApp",
|
||||||
|
"var":"contained"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "Wisher",
|
||||||
|
"href": "Wisher",
|
||||||
|
"var": "outlined"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
32
src/buttons.tsx
Normal file
32
src/buttons.tsx
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import Button from '@mui/material/Button';
|
||||||
|
import Container from '@mui/material/Container';
|
||||||
|
import Grid from '@mui/material/Grid';
|
||||||
|
import btns from "./ProjectButtons.json";
|
||||||
|
|
||||||
|
// const btns = [
|
||||||
|
// { text: 'GarageApp', href: 'GarageApp', var:'contained' },
|
||||||
|
// { text: 'Wisher', href: 'Wisher', var: 'outlined' }
|
||||||
|
// ];
|
||||||
|
|
||||||
|
const btn = props => {
|
||||||
|
return (
|
||||||
|
<Button variant="contained" href={props.href}>{props.text}</Button>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const BtnGrid = () => {
|
||||||
|
return (
|
||||||
|
<Container>
|
||||||
|
<Grid container spacing={2}>
|
||||||
|
{btns.map((btn, index) => (
|
||||||
|
<Grid item key={index} xs={12} sm={6} md={4}>
|
||||||
|
<Button variant={btn.var} href={btn.href}>{btn.text}</Button>
|
||||||
|
</Grid>
|
||||||
|
))}
|
||||||
|
</Grid>
|
||||||
|
</Container>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default BtnGrid
|
||||||
Loading…
Add table
Add a link
Reference in a new issue