diff options
author | sanine-a <sanine.not@pm.me> | 2021-04-13 12:33:23 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2021-04-13 12:33:23 -0500 |
commit | ad2e991545f37f3659f40d30c709133b4055bb9e (patch) | |
tree | 0db9e976d4141c506263d7949a159062018c61a6 /StyleButton.js | |
parent | c9c1b78ed805371615d3ca8b54c86da9a35db8ce (diff) |
create hint button
Diffstat (limited to 'StyleButton.js')
-rw-r--r-- | StyleButton.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 |