refactor: refactor the button component using forwardRef
(#4379)
Co-authored-by: KVOJJJin <jzongcode@gmail.com>
This commit is contained in:
@@ -51,7 +51,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<Modal isShow={isShow} onClose={() => {}} className='!w-[480px] !max-w-[480px] !p-0 !rounded-2xl' wrapperClassName={confirmWrapperClassName}>
|
||||
<Modal isShow={isShow} onClose={() => { }} className='!w-[480px] !max-w-[480px] !p-0 !rounded-2xl' wrapperClassName={confirmWrapperClassName}>
|
||||
<div className={cn(s[`wrapper-${type}`], 'relative p-8')}>
|
||||
<div className='flex items-center justify-center absolute top-4 right-4 w-8 h-8 cursor-pointer' onClick={onCancel}>
|
||||
<XClose className='w-4 h-4 text-gray-500' />
|
||||
@@ -77,7 +77,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
|
||||
)
|
||||
}
|
||||
<Button
|
||||
type='primary'
|
||||
variant='primary'
|
||||
className={confirmBtnClassName || ''}
|
||||
onClick={onConfirm}
|
||||
disabled={confirmDisabled}
|
||||
|
Reference in New Issue
Block a user