Scale displayed status
This commit is contained in:
parent
6c720bd8aa
commit
03b14c769b
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ const App = () => {
|
||||||
increase={sendIncreaseHandler}
|
increase={sendIncreaseHandler}
|
||||||
decrease={sendDecreaseHandler}
|
decrease={sendDecreaseHandler}
|
||||||
toggle={sendToggleHandler}
|
toggle={sendToggleHandler}
|
||||||
status={status}
|
status={Math.floor((status / 255) * 100)}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
Reference in a new issue