Update packages/web/src/components/toolbarButton.tsx
Co-authored-by: Dmitry Gozman <dgozman@gmail.com> Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
a0de3d84f0
commit
bb7b56776a
|
|
@ -42,7 +42,7 @@ export const ToolbarButton: React.FC<React.PropsWithChildren<ToolbarButtonProps>
|
||||||
className,
|
className,
|
||||||
}) => {
|
}) => {
|
||||||
return <button
|
return <button
|
||||||
className={clsx(className, `toolbar-button ${icon}`, toggled && 'toggled')}
|
className={clsx(className, 'toolbar-button', icon, toggled && 'toggled')}
|
||||||
onMouseDown={preventDefault}
|
onMouseDown={preventDefault}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
onDoubleClick={preventDefault}
|
onDoubleClick={preventDefault}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue