add ipc connect
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user