Add nav key prop
This commit is contained in:
parent
d94de055d8
commit
797d13fd0d
@ -11,8 +11,8 @@ function Nav() {
|
|||||||
return (
|
return (
|
||||||
<div className='block' style={{textAlign: 'center'}}>
|
<div className='block' style={{textAlign: 'center'}}>
|
||||||
{
|
{
|
||||||
Object.entries(nav).map(([k, v]) => {
|
Object.entries(nav).map(([k, v], i) => {
|
||||||
return <Link href={v}>
|
return <Link key={i} href={v}>
|
||||||
<a className='button green'>{k}</a>
|
<a className='button green'>{k}</a>
|
||||||
</Link>
|
</Link>
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user