chore: replace chat in web app (#2373)

This commit is contained in:
zxhlyh 2024-02-04 16:10:46 +08:00 • committed by GitHub
commit 51d359268e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 2100 additions and 92 deletions

View file

@ -20,6 +20,7 @@ export type ConfirmCommonProps = {
confirmBtnClassName?: string
confirmText?: string
confirmWrapperClassName?: string
confirmDisabled?: boolean
}
const ConfirmCommon: FC<ConfirmCommonProps> = ({
@ -34,6 +35,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
confirmBtnClassName,
confirmText,
confirmWrapperClassName,
confirmDisabled,
}) => {
const { t } = useTranslation()
@ -78,6 +80,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
type='primary'
className={confirmBtnClassName || ''}
onClick={onConfirm}
disabled={confirmDisabled}
>
{confirmText || CONFIRM_MAP[type].confirmText}
</Button>