Skip to content

Commit 0d9b1ca

Browse files
committed
style(brand): fix the icon class name transfer problem in brand components
1 parent e7787bf commit 0d9b1ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/ui/brand.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import Html from '~/icons/html5.svg'
6060
import Postcss from '~/icons/postcss.svg'
6161
import Env from '~/icons/env.svg'
6262
import Solana from '~/icons/solana.svg'
63+
import clsx from 'clsx'
6364

6465
export const BrandsMap: Record<
6566
string,
@@ -330,7 +331,7 @@ export function Brand(props: {
330331
if (!Icon) return <span className="hidden">Missing brand icon for {name}</span>
331332

332333
if (as === 'icon' || !url) {
333-
return <Icon className={iconClassName} fill="currentColor" />
334+
return <Icon className={clsx([className, iconClassName])} fill="currentColor" />
334335
}
335336

336337
return (

0 commit comments

Comments
 (0)