From 3b802fadc7d1ede54259c79ddb3ef809e4aa115d Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Wed, 14 Jun 2023 22:01:01 -0400 Subject: [PATCH] error mode colors/labels --- js/ui.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/ui.js b/js/ui.js index c81d8cd..1cb43ea 100644 --- a/js/ui.js +++ b/js/ui.js @@ -5,8 +5,8 @@ import * as Tone from "./tone.js"; /** @typedef {({children, classes}:{children?:preact.ComponentChildren, classes?:string})=>preact.VNode} BasicElement */ -/** @type {({children, icon, light, disabled, inactive, onClick, classes}:{children:preact.VNode, icon?:preact.VNode, light:boolean, disabled:boolean, inactive:boolean, onClick:()=>void, classes?:string})=>preact.VNode} */ -export function Button({children, icon, light, disabled, inactive, onClick, classes}) +/** @type {({children, icon, light, disabled, inactive, onClick, classes, classesActive}:{children:preact.VNode, icon?:preact.VNode, light:boolean, disabled:boolean, inactive:boolean, onClick:()=>void, classes?:string, classesActive?:string})=>preact.VNode} */ +export function Button({children, icon, light, disabled, inactive, onClick, classes, classesActive}) { const [FlashGet, FlashSet] = React.useState(0); const handleClick =()=> @@ -19,7 +19,7 @@ export function Button({children, icon, light, disabled, inactive, onClick, clas return html`