diff --git a/static/src/BlindItem.js b/static/src/BlindItem.js index c74e41f..b0a9778 100644 --- a/static/src/BlindItem.js +++ b/static/src/BlindItem.js @@ -5,10 +5,12 @@ import { Text, Badge, IconButton, + Icon, Slider, SliderTrack, SliderFilledTrack, - SliderThumb + SliderThumb, + Grid } from "@chakra-ui/core"; import { @@ -27,12 +29,10 @@ function PositionSelector({ position, id }) { return ""; } return ( - + - - - + ); } @@ -44,28 +44,37 @@ function BlindItem(data) { axios.get(`/roller/${id}/${action}`); }; return ( - - {name} - - - {online ? "online" : "offline"} - - - - + + + + {name} + + + + + + - Current action: {action} + Current action: {action} - - - Current position: {position ? `${position}%` : "..."} - - + + + + + + + {position ? `${position}%` : "..."} + + - + + {blinds.map(blind => ( ))} - - + + + + ); }