add ipc connect

This commit is contained in:
2024-03-27 15:09:35 +01:00
parent 4d032380f6
commit 900b07f088
11 changed files with 349 additions and 185 deletions

View File

@ -30,10 +30,14 @@ export default class WiFi extends Component<{}, WiFiState> {
p: 4,
};
handleClose = () => this.setState((prevState) => ({
...prevState,
open: false
}));
handleClose = () => {
this.setState((prevState) => ({
...prevState,
open: false
}));
window.api.request("WIFI_CONNECT", {});
}
render() {
return <Modal
@ -60,7 +64,7 @@ export default class WiFi extends Component<{}, WiFiState> {
<i>Dafür wird eine WiFi-Verbindung hergestellt</i>
<br/>
<br/>
<Button variant="contained" onClick={() => null}>Ja</Button>
<Button variant="contained" onClick={() => this.handleClose()}>Ja !</Button>
<Button variant="contained" onClick={() => null}
color="error">Nein</Button>
</Typography>