mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-22 22:26:43 +08:00
### 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:
@ -6,6 +6,7 @@ import {
|
||||
useFetchUserInfo,
|
||||
} from '@/hooks/user-setting-hooks';
|
||||
import { useCallback } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export const useAddUser = () => {
|
||||
const { addTenantUser } = useAddTenantUser();
|
||||
@ -36,9 +37,11 @@ export const useAddUser = () => {
|
||||
export const useHandleDeleteUser = () => {
|
||||
const { deleteTenantUser, loading } = useDeleteTenantUser();
|
||||
const showDeleteConfirm = useShowDeleteConfirm();
|
||||
const { t } = useTranslation();
|
||||
|
||||
const handleDeleteTenantUser = (userId: string) => () => {
|
||||
showDeleteConfirm({
|
||||
title: t('setting.sureDelete'),
|
||||
onOk: async () => {
|
||||
const code = await deleteTenantUser({ userId });
|
||||
if (code === 0) {
|
||||
|
||||
Reference in New Issue
Block a user