Skip to content

Commit

Permalink
refactor(banner): use string instead of object
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwooseong committed Dec 23, 2024
1 parent d5fea8d commit 517b02b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/bezier-react/src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,14 @@ export const Banner = forwardRef<HTMLDivElement, BannerProps>(function Banner(
<div className={styles.Center}>
{isBezierIcon(icon) ? (
<Icon
className={classNames({
[styles.Icon]: !iconColor,
})}
className={classNames(!iconColor && styles.Icon)}
source={icon}
color={iconColor}
size="s"
/>
) : (
<LegacyIcon
className={classNames({
[styles.Icon]: !iconColor,
})}
className={classNames(!iconColor && styles.Icon)}
name={icon}
color={iconColor}
size="s"
Expand Down

0 comments on commit 517b02b

Please sign in to comment.