refactor(pages): replace inline links with Button asChild and TabsList variant
This commit is contained in:
@@ -51,7 +51,6 @@ export default function CommunityPage() {
|
||||
variant={sortMode === "latest" ? "default" : "outline"}
|
||||
size="sm"
|
||||
onClick={() => setSortMode("latest")}
|
||||
className="h-8"
|
||||
>
|
||||
最新
|
||||
</Button>
|
||||
@@ -59,7 +58,6 @@ export default function CommunityPage() {
|
||||
variant={sortMode === "hot" ? "default" : "outline"}
|
||||
size="sm"
|
||||
onClick={() => setSortMode("hot")}
|
||||
className="h-8"
|
||||
>
|
||||
最热
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user