MCPcopy Create free account
hub / github.com/curiores/SerialAnalyzer / handleClickOpen

Function handleClickOpen

src/Components/SerialSelect.tsx:76–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) => {

Callers

nothing calls this directly

Calls 1

showSerialPortsFunction · 0.85

Tested by

no test coverage detected