Skip to content

Commit 382cb07

Browse files
committed
style(components): fix the icon class name transfer problem in the Brand component
1 parent 53014d0 commit 382cb07

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/cards/project/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ export function ProjectCard({
5757
<Brand
5858
key={tool}
5959
name={tool as keyof typeof BrandsMap}
60-
iconClassName={clsx(
61-
tool === 'Pygame' ? 'h-5 md:h-5.5' : 'h-5 w-5 md:h-5.5 md:w-5.5'
62-
)}
60+
iconClassName={'h-5 w-5 md:h-5.5 md:w-5.5'}
6361
/>
6462
)
6563
})}

components/ui/brand.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export function Brand(props: {
330330
if (!Icon) return <span className="hidden">Missing brand icon for {name}</span>
331331

332332
if (as === 'icon' || !url) {
333-
return <Icon className={className} fill="currentColor" />
333+
return <Icon className={iconClassName} fill="currentColor" />
334334
}
335335

336336
return (

data/supporters.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,6 @@ export const SUPPORTERS: Supporter[] = [
7575
},
7676
{ name: '阿蓝', amount: 0.66, currency: 'CNY', date: '2025-05-12', via: 'WeChat' },
7777
{ name: '默', amount: 66.66, currency: 'CNY', date: '2025-06-25', via: 'WeChat' },
78+
{ name: 'Livid', amount: 0.001, currency: 'SOL', date: '2025-07-22', via: 'Other' },
79+
{ name: 'Yoooungvon', amount: 0.005, currency: 'SOL', date: '2025-07-22', via: 'Other' },
7880
]

0 commit comments

Comments
 (0)