MCPcopy Create free account
hub / github.com/SpacehuhnTech/espwebtool / Buttons

Function Buttons

src/components/Buttons.js:7–33  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

5import Button from '@mui/material/Button'
6
7const Buttons = (props) => {
8 return (
9 <Grid container spacing={1} direction='row' justifyContent='space-between' alignItems='flex-start'>
10 <Grid item>
11 <Button
12 variant='outlined'
13 color='error'
14 onClick={props.erase}
15 disabled={props.disabled}
16 >
17 Erase
18 </Button>
19 </Grid>
20
21 <Grid item>
22 <Button
23 variant='contained'
24 color='success'
25 onClick={props.program}
26 disabled={props.disabled}
27 >
28 Program
29 </Button>
30 </Grid>
31 </Grid>
32 )
33}
34
35Buttons.propTypes = {
36 erase: PropTypes.func,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected