Allow translation of Heading icons
This commit is contained in:
parent
93e4fd74fd
commit
da1acb1463
1 changed files with 7 additions and 1 deletions
|
|
@ -24,7 +24,13 @@ const ToolbarIcon = ({ editor, action, level, icon, onClick }: Props) => {
|
|||
})
|
||||
|
||||
return (
|
||||
<Tooltip content={t(`toolbar.tooltips.${action}`)}>
|
||||
<Tooltip
|
||||
content={
|
||||
level
|
||||
? t(`toolbar.tooltips.${action}`, { level: level })
|
||||
: t(`toolbar.tooltips.${action}`)
|
||||
}
|
||||
>
|
||||
<button onClick={onClick} className={classes}>
|
||||
{icon}
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue