fix errors

This commit is contained in:
David Ralph
2020-10-14 10:42:11 +01:00
parent ba66ed6279
commit 26f5e0b0e5
2 changed files with 2 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ export default class Items extends React.PureComponent {
<h1>{this.props.title}</h1>
<div className='items'>
{this.props.items.map((item) =>
<div className='item' onClick={() => this.props.toggleFunction(item.name)}>
<div className='item' onClick={() => this.props.toggleFunction(item.name)} key={item.name}>
<img alt='icon' draggable={false} src={'https://external-content.duckduckgo.com/iu/?u=' + item.icon_url} />
<div className='details'>
<h4>{item.display_name}</h4>