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