mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-28 11:22:59 +01:00
action info for for toolbars
This commit is contained in:
parent
8d06e86708
commit
920fbce6bb
1 changed files with 2 additions and 2 deletions
|
|
@ -21,14 +21,14 @@ function ConfigurableToolbar({actions, small, ...props}) {
|
|||
</Toolbar>
|
||||
}
|
||||
|
||||
function ActionButton({label, icon96, cssIcons, small, enabled, visible, onClick}) {
|
||||
function ActionButton({label, icon96, cssIcons, small, enabled, visible, actionId, ...props}) {
|
||||
if (!visible) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let icon = small ? <Fa fa={cssIcons} fw /> : <ImgIcon url={icon96} size={48} />;
|
||||
|
||||
return <ToolbarButton {...{onClick, disabled: !enabled}}>
|
||||
return <ToolbarButton disabled={!enabled} {...props}>
|
||||
{icon}
|
||||
{!small && <div>{capitalize(label)}</div>}
|
||||
</ToolbarButton>
|
||||
|
|
|
|||
Loading…
Reference in a new issue