(props)
| 5 | import Button from '@mui/material/Button' |
| 6 | |
| 7 | const 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 | |
| 35 | Buttons.propTypes = { |
| 36 | erase: PropTypes.func, |
nothing calls this directly
no outgoing calls
no test coverage detected