update nav links
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { GearIcon, HouseIcon, QuestionIcon, ShieldIcon, TrophyIcon, UserCircleIcon } from "@phosphor-icons/react";
|
import { HouseIcon, RankingIcon, ShieldIcon, TrophyIcon, UserCircleIcon } from "@phosphor-icons/react";
|
||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
|
|
||||||
export const useLinks = (userId: number, roles: string[]) =>
|
export const useLinks = (userId: number, roles: string[]) =>
|
||||||
@@ -9,6 +9,11 @@ export const useLinks = (userId: number, roles: string[]) =>
|
|||||||
href: '/',
|
href: '/',
|
||||||
Icon: HouseIcon
|
Icon: HouseIcon
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Leaderboard',
|
||||||
|
href: '/leaderboard',
|
||||||
|
Icon: RankingIcon
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Tournaments',
|
label: 'Tournaments',
|
||||||
href: '/tournaments',
|
href: '/tournaments',
|
||||||
@@ -18,11 +23,6 @@ export const useLinks = (userId: number, roles: string[]) =>
|
|||||||
label: 'Profile',
|
label: 'Profile',
|
||||||
href: `/profile/${userId}`,
|
href: `/profile/${userId}`,
|
||||||
Icon: UserCircleIcon
|
Icon: UserCircleIcon
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Settings',
|
|
||||||
href: '/settings',
|
|
||||||
Icon: GearIcon
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user