feat(nav): add Sponsoring link to mobile pet-switcher dropdown

Desktop sidebar already lists /unterstuetzen as a primary nav item, but
mobile had no way to reach it at all. The 5-slot bottom tab bar has no
room for a 6th destination, so it goes in the pet-switcher dropdown
next to the existing secondary actions (add pet, theme toggle) instead
of a second floating header icon.
This commit is contained in:
admin committed 2026-08-14 15:02:12 +02:00
1 parent 5adbae5b8c
commit 375a32e69d
1 file changed
+9
+9
View File
@@ -13,6 +13,7 @@ import {
BadgeCheck,
Moon,
Sun,
Sparkles,
} from "lucide-react";
import { useTranslations } from "next-intl";
import { NotificationBell } from "@/components/notifications/NotificationBell";
@@ -76,6 +77,7 @@ export function MobileNav({ pets }: MobileNavProps) {
const isExplorePage = pathname.startsWith("/explore");
const isNotificationsPage = pathname.startsWith("/notifications");
const isMessagesPage = pathname.startsWith("/messages");
const isSponsorPage = pathname.startsWith("/unterstuetzen");
return (
<div className="lg:hidden fixed bottom-0 left-0 right-0 z-50">
@@ -148,6 +150,13 @@ export function MobileNav({ pets }: MobileNavProps) {
<span className="text-orange-500">+</span>
<span>{t("addPet")}</span>
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => router.push("/unterstuetzen")}
className={`flex items-center gap-2 cursor-pointer ${isSponsorPage ? "text-orange-500" : ""}`}
>
<Sparkles className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />
<span>{t("sponsor")}</span>
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => setDark(!isDark)}
className="flex items-center gap-2 cursor-pointer"