Skip to content

Commit 025d6a2

Browse files
committed
chore: wip
1 parent 9cfbee0 commit 025d6a2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/bezier-react/src/components/AlphaIconButton/IconButton.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ import { forwardRef } from 'react'
55
import { isBezierIcon } from '@channel.io/bezier-icons'
66
import classNames from 'classnames'
77

8+
import { AlphaIcon } from '~/src/components/AlphaIcon'
89
import { type AlphaIconButtonProps } from '~/src/components/AlphaIconButton'
910
import { AlphaLoader } from '~/src/components/AlphaLoader'
1011
import { BaseButton } from '~/src/components/BaseButton'
1112
import { type ButtonSize } from '~/src/components/Button'
12-
import { Icon } from '~/src/components/Icon'
1313

1414
import styles from './IconButton.module.scss'
1515

1616
function getIconSize(size: ButtonSize) {
1717
return (
1818
{
19-
xs: 'xs',
20-
s: 'xs',
21-
m: 's',
22-
l: 's',
23-
xl: 'm',
19+
xs: '16',
20+
s: '16',
21+
m: '20',
22+
l: '20',
23+
xl: '24',
2424
} as const
2525
)[size]
2626
}
@@ -68,7 +68,7 @@ export const IconButton = forwardRef<HTMLButtonElement, AlphaIconButtonProps>(
6868
)}
6969
>
7070
{isBezierIcon(content) ? (
71-
<Icon
71+
<AlphaIcon
7272
size={getIconSize(size)}
7373
source={content}
7474
className={styles.ButtonIcon}
@@ -83,7 +83,7 @@ export const IconButton = forwardRef<HTMLButtonElement, AlphaIconButtonProps>(
8383
className={classNames(
8484
styles.ButtonLoader,
8585
// NOTE: Loader size is the same as icon size
86-
styles[`size-${getIconSize(size)}`]
86+
styles[`size-${size}`]
8787
)}
8888
>
8989
<AlphaLoader

0 commit comments

Comments
 (0)