fix member

This commit is contained in:
unknown
2025-04-17 09:58:45 +07:00
parent b5b6019ce5
commit dfdac75b8e
4 changed files with 35 additions and 56 deletions

View File

@ -26,29 +26,10 @@ export default function AdmAccess({page,groups,formData,handleClose,fetchCustome
const [dialogType, setDialogType] = useState('');
const [changeGroup, setChangeGroup] = useState('');
const [changeGroupD, setChangeGroupD] = useState(false);
// const [groups, setGroups] = useState([]);
useEffect(() => {
// fetchGroups();
}, []);
// const fetchGroups = async () => {
// try {
// let getGroups = await axios.get(`${BASE_URL_CUSTOMER}/groups/list`, {
// params: {
// limit: 50,
// page: 1,
// with_deleted: false,
// order_field: 'name',
// order_direction: 'ASC'
// }
// });
// setGroups(getGroups.data.data.list);
// } catch (error: any) {
// toast.error(error.message);
// }
// };
const handleYes = async () => {
try {
if (dialogType === 'update status') {