fix: add keys to header buttons (#142)

Co-authored-by: Zdeněk Janeček <zdenek.janecek@firma.seznam.cz>
This commit is contained in:
Zdeněk Janeček 2023-03-28 18:38:05 +02:00 committed by GitHub
parent 3433371930
commit 55e19381a7
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,7 @@ export function getButtons({
isAuthenticated === true ? ( isAuthenticated === true ? (
<NavButton <NavButton
name="Sign Out" name="Sign Out"
key="signout"
icon={<UserX />} icon={<UserX />}
value="signout" value="signout"
onClick={() => { onClick={() => {
@ -166,6 +167,7 @@ export function getButtons({
isAuthenticated === false ? ( isAuthenticated === false ? (
<NavButton <NavButton
name="Sign In" name="Sign In"
key="signin"
icon={<User />} icon={<User />}
value="signin" value="signin"
href="/signin" href="/signin"
@ -176,6 +178,7 @@ export function getButtons({
<FadeIn> <FadeIn>
<NavButton <NavButton
name="Admin" name="Admin"
key="admin"
icon={<Settings />} icon={<Settings />}
value="admin" value="admin"
href="/admin" href="/admin"