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

This commit is contained in:
Gabe Kangas
2022-10-12 19:13:35 -07:00
parent d40e66b7ef
commit ee283311ec

View File

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