summaryrefslogtreecommitdiff
path: root/StyleButton.js
diff options
context:
space:
mode:
Diffstat (limited to 'StyleButton.js')
-rw-r--r--StyleButton.js3
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