terry-staging #3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user