Hook up disconnect to UI button

This commit is contained in:
GHOSCHT 2021-12-31 23:37:46 +01:00
parent 0c41a85733
commit 0c270ee199
No known key found for this signature in database
GPG key ID: A35BD466B8871994

View file

@ -5,7 +5,7 @@ import Select from "react-select";
import SerialPort from "serialport";
import KnobSection from "./Components/KnobSection";
import { useAppDispatch } from "./redux/hooks";
import { connect, setSerialPort } from "./redux/slices/serialConnectionSlice";
import { connect, disconnect, setSerialPort } from "./redux/slices/serialConnectionSlice";
const GlobalStyle = createGlobalStyle`
html {
@ -53,7 +53,7 @@ const App = () => {
<button
type="button"
onClick={() => {
// dispatch(disconnect());
dispatch(disconnect());
}}
>
disconnect