fix(AboutScinoteModal): Enable react optimizations

Children generated within a loop or by an iterator need to be passed
a unique `key` property so React can properly watch their updates and
perform the necessary actions.

Signed-off-by: Adrian Oprea <adrian@oprea.rocks>
This commit is contained in:
Adrian Oprea 2018-01-18 09:59:37 +02:00
parent 91468faaf9
commit 12fd630d0c

View file

@ -30,7 +30,11 @@ export default (props: Props): Node => {
<strong>
<FormattedMessage id="general.addon_versions" />
</strong>
{addons.map((addon: string): Node => <p>{addon}</p>)}
{
addons.map(
(addon: string): Node => (<p key={addon}>{addon}</p>)
)
}
</span>
}
</Modal.Body>