First visual addition of missing knobs

This commit is contained in:
GHOSCHT 2021-10-28 09:49:37 +02:00
parent 2c08852c75
commit dc4f8e88a9
2 changed files with 44 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import SerialPort from "serialport";
import Knob from "./Components/Knob";
import { connect, disconnect } from "./redux/actions/asyncSerialConnectionActions";
import { setSerialPort } from "./redux/actions/serialConnectionActions";
import KnobSection from "./Components/KnobSection";
const GlobalStyle = createGlobalStyle`
html {
@ -86,6 +87,7 @@ const App = () => {
toggle={sendToggleHandler}
status={Math.floor((status / 255) * 100)}
/>
<KnobSection />
<button
type="button"
onClick={() => {

View file

@ -0,0 +1,42 @@
import React from "react";
import styled from "styled-components";
import Knob from "./Knob";
const KnobSection = () => {
const KnobContainer = styled.div`
display: flex;
`;
return (
<KnobContainer>
<Knob
increase={() => {}}
decrease={() => {}}
toggle={() => {}}
status={255}
/>
<Knob
increase={() => {}}
decrease={() => {}}
toggle={() => {}}
status={255}
/>
<Knob
increase={() => {}}
decrease={() => {}}
toggle={() => {}}
status={255}
/>
<Knob
increase={() => {}}
decrease={() => {}}
toggle={() => {}}
status={255}
/>
</KnobContainer>
);
};
export default KnobSection;