From 0cf2d272c981929df0447d06f356935f027437f2 Mon Sep 17 00:00:00 2001 From: zetaloop Date: Wed, 25 Feb 2026 14:54:15 +0800 Subject: [PATCH] refactor(pages): replace inline links with Button asChild and TabsList variant --- app/(main)/community/page.tsx | 2 -- app/(main)/page.tsx | 58 +++++++++++++-------------------- app/(main)/player/[id]/page.tsx | 16 ++------- components/header.tsx | 2 +- 4 files changed, 26 insertions(+), 52 deletions(-) diff --git a/app/(main)/community/page.tsx b/app/(main)/community/page.tsx index 802382e..b09ffff 100644 --- a/app/(main)/community/page.tsx +++ b/app/(main)/community/page.tsx @@ -51,7 +51,6 @@ export default function CommunityPage() { variant={sortMode === "latest" ? "default" : "outline"} size="sm" onClick={() => setSortMode("latest")} - className="h-8" > 最新 @@ -59,7 +58,6 @@ export default function CommunityPage() { variant={sortMode === "hot" ? "default" : "outline"} size="sm" onClick={() => setSortMode("hot")} - className="h-8" > 最热 diff --git a/app/(main)/page.tsx b/app/(main)/page.tsx index 729dd94..e2e29dc 100644 --- a/app/(main)/page.tsx +++ b/app/(main)/page.tsx @@ -62,14 +62,12 @@ export default function HomePage() {
{games.map((game) => ( - - - {game.name} - + ))}
@@ -77,34 +75,22 @@ export default function HomePage() {

推荐内容

-
- - 综合排序 - - - 评分最高 - - - 接单最多 - - - 价格最低 - - - 价格最高 - +
+ + + + +
diff --git a/app/(main)/player/[id]/page.tsx b/app/(main)/player/[id]/page.tsx index 0df8b02..727ded7 100644 --- a/app/(main)/player/[id]/page.tsx +++ b/app/(main)/player/[id]/page.tsx @@ -92,19 +92,9 @@ export default async function PlayerDetailPage({ params }: { params: Promise<{ i
- - - 服务列表 ({playerServices.length}) - - - 评价 ({playerReviews.length}) - + + 服务列表 ({playerServices.length}) + 评价 ({playerReviews.length}) diff --git a/components/header.tsx b/components/header.tsx index a04ba87..861d891 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -129,7 +129,7 @@ export function Header() { {roleLabels[currentRole]} - + 切换身份 {availableRoles.map(([role, label]) => (