Browse Source

Do not render icon of action button if icon is not set. Closes #2203 #2202

pull/2213/head
Gabe Kangas 3 years ago
parent
commit
ee283311ec
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 2
      web/components/action-buttons/ActionButton/ActionButton.tsx

2
web/components/action-buttons/ActionButton/ActionButton.tsx

@ -31,7 +31,7 @@ export const ActionButton: FC<ActionButtonProps> = ({
onClick={onButtonClicked} onClick={onButtonClicked}
style={{ backgroundColor: color }} style={{ backgroundColor: color }}
> >
<img src={icon} className={`${styles.icon}`} alt={description} /> {icon && <img src={icon} className={`${styles.icon}`} alt={description} />}
{title} {title}
</Button> </Button>
<Modal <Modal

Loading…
Cancel
Save