fix footer rendering with array keys

This commit is contained in:
Michael Schramm 2020-06-02 09:58:28 +02:00
parent 3341b585c5
commit dbb84fe237

View File

@ -40,7 +40,7 @@ const AuthFooterInner: React.FC<Props> = props => {
</Link> </Link>
{props.me ? ( {props.me ? (
[ [
<span style={{color: '#FFF'}}> <span style={{color: '#FFF'}} key={'user'}>
Hi, {props.me.username} Hi, {props.me.username}
</span>, </span>,
<Button <Button
@ -54,7 +54,7 @@ const AuthFooterInner: React.FC<Props> = props => {
] ]
): ( ): (
[ [
<Link href={'/login'}> <Link href={'/login'} key={'login'}>
<Button <Button
type={'link'} type={'link'}
ghost ghost
@ -62,7 +62,7 @@ const AuthFooterInner: React.FC<Props> = props => {
{t('login')} {t('login')}
</Button> </Button>
</Link>, </Link>,
<Link href={'/register'}> <Link href={'/register'} key={'register'}>
<Button <Button
type={'link'} type={'link'}
ghost ghost