This commit is contained in:
Raja Oktafrianto
2025-03-18 11:27:23 +07:00
parent 8026d6910a
commit 1445fc8ecf
28 changed files with 446 additions and 316 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)
}
}