fix: replace mobile wallet nav item

This commit is contained in:
TerryM
2026-05-26 20:02:40 +08:00
parent 54f71c6ab3
commit 292383f122

View File

@@ -410,10 +410,13 @@ export function PublicLayout() {
} }
/> />
<BottomNavIcon <BottomNavIcon
to="/wallet" to="/browse?sort=recommended"
label={t("wallet")} label={t("official")}
icon="profile" icon="heart"
active={pathname === "/wallet"} active={
pathname === "/browse" &&
new URLSearchParams(search).get("sort") === "recommended"
}
/> />
<BottomNavIcon <BottomNavIcon
to="/browse?sort=latest" to="/browse?sort=latest"
@@ -440,7 +443,7 @@ function BottomNavIcon({
}: { }: {
to: string; to: string;
label: string; label: string;
icon: "home" | "document" | "profile" | "update"; icon: "home" | "document" | "heart" | "profile" | "update";
active: boolean; active: boolean;
}) { }) {
const src = active const src = active