From ad2e991545f37f3659f40d30c709133b4055bb9e Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 13 Apr 2021 12:33:23 -0500 Subject: create hint button --- StyleButton.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'StyleButton.js') diff --git a/StyleButton.js b/StyleButton.js index 806ece6..5fd79c8 100644 --- a/StyleButton.js +++ b/StyleButton.js @@ -1,6 +1,6 @@ function StyleButton(props) { - const { enabled, handleClick } = props; + const { enabled, handleClick, style } = props; const className = enabled ? 'StyleButtonEnabled' : 'StyleButtonDisabled'; @@ -8,6 +8,7 @@ function StyleButton(props) return h( `div.unselectable.StyleButton.${className}`, { + style, onClick: handleClick, }, props.text -- cgit v1.2.1