mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
feat: add gift navigation, routes, and i18n translations
This commit is contained in:
@@ -35,6 +35,7 @@ import {
|
||||
InfoIcon,
|
||||
CogIcon,
|
||||
WheelIcon,
|
||||
GiftIcon,
|
||||
MenuIcon,
|
||||
CloseIcon,
|
||||
SunIcon,
|
||||
@@ -60,6 +61,7 @@ interface AppHeaderProps {
|
||||
referralEnabled?: boolean;
|
||||
hasContests?: boolean;
|
||||
hasPolls?: boolean;
|
||||
giftEnabled?: boolean;
|
||||
}
|
||||
|
||||
export function AppHeader({
|
||||
@@ -75,6 +77,7 @@ export function AppHeader({
|
||||
referralEnabled,
|
||||
hasContests,
|
||||
hasPolls,
|
||||
giftEnabled,
|
||||
}: AppHeaderProps) {
|
||||
const { t } = useTranslation();
|
||||
const location = useLocation();
|
||||
@@ -164,6 +167,7 @@ export function AppHeader({
|
||||
...(hasContests ? [{ path: '/contests', label: t('nav.contests'), icon: GamepadIcon }] : []),
|
||||
...(hasPolls ? [{ path: '/polls', label: t('nav.polls'), icon: ClipboardIcon }] : []),
|
||||
...(wheelEnabled ? [{ path: '/wheel', label: t('nav.wheel'), icon: WheelIcon }] : []),
|
||||
...(giftEnabled ? [{ path: '/gift', label: t('nav.gift'), icon: GiftIcon }] : []),
|
||||
{ path: '/info', label: t('nav.info'), icon: InfoIcon },
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user