Add empty alt tags for decorative images

This commit is contained in:
Justin Edmund 2022-01-29 18:13:49 -08:00
parent c8d361dc3e
commit 97a55e843c

View file

@ -33,15 +33,15 @@ class Button extends React.Component<Props, State> {
let icon
if (this.props.type === 'new') {
icon = <span className='icon'>
<img src="/icons/new.svg" />
<img alt="" src="/icons/new.svg" />
</span>
} else if (this.props.type === 'menu') {
icon = <span className='icon'>
<img src="/icons/menu.svg" />
<img alt="" src="/icons/menu.svg" />
</span>
} else if (this.props.type === 'link') {
icon = <span className='icon'>
<img src="/icons/link.svg" />
<img alt="" src="/icons/link.svg" />
</span>
}