A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
feat: delete unused code
shuaif45b466c33b7
diff --git a/ui/src/hooks/useChangeUserRoleModal/index.tsx b/ui/src/hooks/useChangeUserRoleModal/index.tsxindex 69f958ee..08c99d5d 100644--- a/ui/src/hooks/useChangeUserRoleModal/index.tsx+++ b/ui/src/hooks/useChangeUserRoleModal/index.tsx@@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next';import ReactDOM from 'react-dom/client';-// import { Modal as AnswerModal } from '@/components';import { getUserRoles, changeUserRole } from '@/services';import { UserRoleItem } from '@/common/interface';@@ -48,26 +47,7 @@ const useChangeUserRoleModal = ({ callback }: Props) => {return;}- // if (changeType.type === 'deleted') {- // onClose();- // AnswerModal.confirm({- // title: t('confirm_title'),- // content: t('confirm_content'),- // confirmText: t('confirm_btn'),- // confirmBtnVariant: 'danger',- // onConfirm: () => {- // changeUserStatus({- // user_id: id,- // status: changeType.type,- // }).then(() => {- // callback?.();- // onClose();- // });- // },- // });- // return;- // }changeUserRole({user_id: id,role_id: changedId,