structural refactor and codebase improvements

This commit is contained in:
2026-08-09 14:58:14 +02:00
parent 22b1dd3f56
commit c9715baab8
247 changed files with 11515 additions and 3063 deletions

View File

@@ -3,7 +3,13 @@ import { useTranslation } from "react-i18next"
import { Home, Search, BookOpen, User } from "lucide-react"
import { cn } from "@/lib/utils"
export function BottomTabBar({ onLogTap }: { onLogTap: () => void }) {
export function BottomTabBar({
onLogTap,
pendingCount = 0,
}: {
onLogTap: () => void
pendingCount?: number
}) {
const { t } = useTranslation()
const matchRoute = useMatchRoute()
@@ -55,7 +61,12 @@ export function BottomTabBar({ onLogTap }: { onLogTap: () => void }) {
active ? "text-foreground" : "text-muted-foreground",
)}
>
<tab.icon className="size-5" strokeWidth={active ? 2.5 : 2} />
<div className="relative">
<tab.icon className="size-5" strokeWidth={active ? 2.5 : 2} />
{tab.to === "/profile" && pendingCount > 0 && (
<span className="absolute -right-1 -top-0.5 size-2 rounded-full bg-primary" />
)}
</div>
<span className="text-[10px] font-medium">{tab.label}</span>
</Link>
)