menu crud

This commit is contained in:
unknown
2025-03-18 02:44:19 +07:00
parent 066bd41b1c
commit d3110cf440
6 changed files with 160 additions and 111 deletions

View File

@ -8,6 +8,7 @@ import { useAuthContext } from '@/auth';
import { apiConfig } from '@/config/api.config';
import ConfirmDialog from '@/components/confirm';
import axios from 'axios';
import { toast } from 'sonner';
const BASE_URL = apiConfig.service_customer;
import CustomerDialog from '../manage-members/CustomerDetailModal';
@ -128,10 +129,12 @@ const Kyc = () => {
await fetchGroups();
setDialogOpen(false)
setIsDialogOpen(false)
toast.success('Success Update Kyc Member');
} catch (error: any) {
alert(error.message)
setDialogOpen(false)
setIsDialogOpen(false)
toast.error(error.message)
}
}

View File

@ -7,6 +7,7 @@ import CustomerDialog from './CustomerDetailModal';
import ConfirmDialog from '@/components/confirm';
import { useAuthContext } from '@/auth';
import { ScreenLoader } from '@/components';
import { toast } from 'sonner';
const BASE_URL = apiConfig.service_customer;
const ManageMembers = () => {
@ -99,10 +100,12 @@ const ManageMembers = () => {
await fetchGroups();
setDialogOpen(false)
setIsDialogOpen(false)
toast.success('Success Update Member');
} catch (error: any) {
alert(error.message)
setDialogOpen(false)
setIsDialogOpen(false)
toast.error(error.message)
}
}