mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Add label to toolbar button.
This commit is contained in:
parent
7b464c0ac0
commit
9e43b9953e
@ -40,12 +40,12 @@ export const ToolbarButtonOption = (props: { configuration: ActionConfig }) => {
|
|||||||
arrow={true}
|
arrow={true}
|
||||||
enterDelay={700}
|
enterDelay={700}
|
||||||
>
|
>
|
||||||
<Box component="span" my="auto" aria-label={props.configuration.tooltip || ''}>
|
<Box component="span" my="auto">
|
||||||
<IconButton
|
<IconButton
|
||||||
onClick={props.configuration.onClick}
|
onClick={props.configuration.onClick}
|
||||||
disabled={props.configuration.disabled && props.configuration.disabled()}
|
disabled={props.configuration.disabled && props.configuration.disabled()}
|
||||||
aria-pressed={selected}
|
aria-pressed={selected}
|
||||||
// color={selected ? 'secondary' : 'default'}
|
aria-label={props.configuration.tooltip || ''}
|
||||||
>
|
>
|
||||||
{typeof props.configuration.icon === 'function'
|
{typeof props.configuration.icon === 'function'
|
||||||
? props.configuration.icon()
|
? props.configuration.icon()
|
||||||
|
Loading…
Reference in New Issue
Block a user