Skip to content

Commit 4c8e4f8

Browse files
更新 Home.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 29360cd commit 4c8e4f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/playground/src/pages/Home.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ export const Home = () => {
9898
>
9999
<CategoryIcon name={category} />
100100
{category}
101-
<span className="text-xs text-muted-foreground">
101+
<span
102+
className={`text-xs ${activeCategory === category ? 'text-primary' : 'text-muted-foreground'}`}
103+
>
102104
({exampleCategories[category as keyof typeof exampleCategories].length})
103105
</span>
104106
</button>

0 commit comments

Comments
 (0)