remove wallet functionality

This commit is contained in:
TerryM
2026-05-27 10:40:02 +08:00
parent 1f89363b6d
commit 7546faf15e
15 changed files with 23 additions and 8125 deletions

View File

@@ -20,7 +20,6 @@ type PublicNavWhich =
| "browseLatest"
| "browseRecommended"
| "browsePopular"
| "wallet"
| "about";
function navIsActive(
@@ -43,8 +42,6 @@ function navIsActive(
return pathname === "/browse" && sp.get("sort") === "recommended";
case "browsePopular":
return pathname === "/browse" && sp.get("sort") === "popular";
case "wallet":
return pathname === "/wallet";
case "about":
return pathname === "/about";
default:
@@ -240,13 +237,6 @@ export function PublicLayout() {
>
{t("popular")}
</Link>
<Link
to="/wallet"
className={navClassName(na("wallet"))}
aria-current={na("wallet") ? "page" : undefined}
>
{t("wallet")}
</Link>
</nav>
<div className="flex min-w-0 flex-1 items-center justify-end gap-2 min-[1200px]:flex-none">
@@ -344,14 +334,6 @@ export function PublicLayout() {
>
{t("popular")}
</Link>
<Link
to="/wallet"
className={navClassName(na("wallet"))}
aria-current={na("wallet") ? "page" : undefined}
onClick={() => setOpen(false)}
>
{t("wallet")}
</Link>
<Link
to="/about"
className={navClassName(na("about"))}
@@ -376,12 +358,6 @@ export function PublicLayout() {
>
{t("footerAbout")}
</Link>
<Link
to="/wallet"
className="rounded-sm outline-none hover:text-ark-gold2 focus-visible:ring-2 focus-visible:ring-ark-gold/80 focus-visible:ring-offset-2 focus-visible:ring-offset-ark-bg"
>
{t("profile")}
</Link>
{import.meta.env.VITE_DISABLE_ADMIN !== "true" ? (
<Link
to={`${adminUiPrefix}/login`}
@@ -443,7 +419,7 @@ function BottomNavIcon({
}: {
to: string;
label: string;
icon: "home" | "document" | "heart" | "profile" | "update";
icon: "home" | "document" | "heart" | "update";
active: boolean;
}) {
const src = active