diff --git a/Dashboard/app/renderer/app.js b/Dashboard/app/renderer/app.js index 6729aad..81647c7 100644 --- a/Dashboard/app/renderer/app.js +++ b/Dashboard/app/renderer/app.js @@ -1,6 +1,5 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import Test from './components/Test'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import rootReducer from './store/reducers'; diff --git a/Dashboard/app/renderer/components/Test.js b/Dashboard/app/renderer/components/Test.js deleted file mode 100644 index dd17330..0000000 --- a/Dashboard/app/renderer/components/Test.js +++ /dev/null @@ -1,47 +0,0 @@ -import React, { useState } from 'react'; -import { useSelector, useDispatch } from 'react-redux/'; - -export default function Test() { - const comConnection = useSelector((state) => state.comConnectionReducer); - const [comData, setComData] = useState(''); - - comConnection.parser.on('data', (data) => { - setComData(data); - }); - - const triggerOn = () => { - comConnection.port.write('on'); - }; - const triggerOff = () => { - comConnection.port.write('off'); - }; - - const triggerOne = () => { - comConnection.port.write('0'); - }; - const triggerTwo = () => { - comConnection.port.write('1'); - }; - - return ( -
{comData}
-