Feat: Modify the prompt text for deleting team members #2834 (#3599)

### What problem does this PR solve?
Feat: Modify the prompt text for deleting team members #2834

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-11-22 18:50:53 +08:00
committed by GitHub
parent 55692e4da6
commit 8872aed512
5 changed files with 10 additions and 3 deletions

View File

@ -77,6 +77,7 @@ export function useDynamicSVGImport(
}
interface IProps {
title?: string;
onOk?: (...args: any[]) => any;
onCancel?: (...args: any[]) => any;
}
@ -86,10 +87,10 @@ export const useShowDeleteConfirm = () => {
const { t } = useTranslation();
const showDeleteConfirm = useCallback(
({ onOk, onCancel }: IProps): Promise<number> => {
({ title, onOk, onCancel }: IProps): Promise<number> => {
return new Promise((resolve, reject) => {
modal.confirm({
title: t('common.deleteModalTitle'),
title: title ?? t('common.deleteModalTitle'),
icon: <ExclamationCircleFilled />,
// content: 'Some descriptions',
okText: t('common.ok'),