fix: add keys to header buttons (#142)
Co-authored-by: Zdeněk Janeček <zdenek.janecek@firma.seznam.cz>
This commit is contained in:
parent
3433371930
commit
55e19381a7
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue