()
| 74 | const [serialOn, setSerialOn] = React.useState(false); |
| 75 | |
| 76 | const handleClickOpen = () => { |
| 77 | // Looks for serial ports, returns a promise |
| 78 | showSerialPorts().then((result) => { |
| 79 | // When the promise returns, open the dialog |
| 80 | setOpen(true); |
| 81 | }); |
| 82 | }; |
| 83 | |
| 84 | // This is the main function that runs when the dialog closes |
| 85 | const handleClose = (port: any) => { |
nothing calls this directly
no test coverage detected