mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
added key prop to Fragment to clear warning (#1333)
This commit is contained in:
parent
ced16eecc9
commit
ed15952a85
@ -3,7 +3,7 @@ import { useGdprMetadata } from '@hooks/useGdprMetadata'
|
|||||||
import { useSiteMetadata } from '@hooks/useSiteMetadata'
|
import { useSiteMetadata } from '@hooks/useSiteMetadata'
|
||||||
import Button from '@shared/atoms/Button'
|
import Button from '@shared/atoms/Button'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import React from 'react'
|
import React, { Fragment } from 'react'
|
||||||
import content from '../../../content/footer.json'
|
import content from '../../../content/footer.json'
|
||||||
import External from '@images/external.svg'
|
import External from '@images/external.svg'
|
||||||
import styles from './Links.module.css'
|
import styles from './Links.module.css'
|
||||||
@ -16,12 +16,12 @@ export default function Links() {
|
|||||||
return (
|
return (
|
||||||
<div className={styles.links}>
|
<div className={styles.links}>
|
||||||
{content.links.map(({ name, url }) => (
|
{content.links.map(({ name, url }) => (
|
||||||
<>
|
<Fragment key={name}>
|
||||||
<Button style="text" size="small" href={url}>
|
<Button style="text" size="small" href={url}>
|
||||||
{name} <External />
|
{name} <External />
|
||||||
</Button>
|
</Button>
|
||||||
{' — '}
|
{' — '}
|
||||||
</>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<Link href="/imprint">
|
<Link href="/imprint">
|
||||||
|
Loading…
Reference in New Issue
Block a user