added key prop to Fragment to clear warning (#1333)

This commit is contained in:
EnzoVezzaro 2022-04-06 12:18:52 -04:00 committed by GitHub
parent ced16eecc9
commit ed15952a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import { useGdprMetadata } from '@hooks/useGdprMetadata'
import { useSiteMetadata } from '@hooks/useSiteMetadata'
import Button from '@shared/atoms/Button'
import Link from 'next/link'
import React from 'react'
import React, { Fragment } from 'react'
import content from '../../../content/footer.json'
import External from '@images/external.svg'
import styles from './Links.module.css'
@ -16,12 +16,12 @@ export default function Links() {
return (
<div className={styles.links}>
{content.links.map(({ name, url }) => (
<>
<Fragment key={name}>
<Button style="text" size="small" href={url}>
{name} <External />
</Button>
{' — '}
</>
</Fragment>
))}
<Link href="/imprint">