deletio
This commit is contained in:
@ -88,20 +88,6 @@ const AgentBalance = () => {
|
||||
setFormData(initBalance);
|
||||
};
|
||||
|
||||
// const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
// setFormData({
|
||||
// ...formData,
|
||||
// [e.target.name]: e.target.value
|
||||
// });
|
||||
// };
|
||||
|
||||
// const handleSubmit = async (e: React.FormEvent) => {
|
||||
// e.preventDefault();
|
||||
// // if (!formData.groupName) return toast.warning(`Group name can not be empty!`);
|
||||
// setIsDialogOpen(false);
|
||||
// setDialogOpen(true);
|
||||
// };
|
||||
|
||||
function createGroup() {
|
||||
setDialogType('create');
|
||||
openDialog();
|
||||
@ -117,33 +103,6 @@ const AgentBalance = () => {
|
||||
fetchAgentBalance();
|
||||
};
|
||||
|
||||
// const handleYes = async () => {
|
||||
// setIsReloading(true);
|
||||
// try {
|
||||
// if (dialogType === 'create') {
|
||||
// await axios.post(`${BASE_URL}/groups/create`, {
|
||||
// name: formData.groupName,
|
||||
// status: formData.status,
|
||||
// description: formData.description,
|
||||
// created_at: new Date()
|
||||
// });
|
||||
// toast.success(`Success create group`);
|
||||
// }
|
||||
// } catch (error: any) {
|
||||
// console.log(error);
|
||||
// toast.error(error.message);
|
||||
// } finally {
|
||||
// setDialogOpen(false);
|
||||
// closeDialog();
|
||||
// await fetchAgentBalance();
|
||||
// setLoading(false);
|
||||
// }
|
||||
// };
|
||||
|
||||
// function setShowAddDialog(el: any) {
|
||||
// setIsDialogOpen(el);
|
||||
// }
|
||||
|
||||
if (loading) return <LoaderTransparant />;
|
||||
|
||||
return (
|
||||
@ -174,7 +133,6 @@ const AgentBalance = () => {
|
||||
<span className="text-sm">Agent Balances</span>
|
||||
</Link>
|
||||
</Breadcrumbs>
|
||||
{/* <div className="w-full overflow-x-auto px-4"> */}
|
||||
|
||||
<div className="grid gap-5 lg:gap-7.5 mt-5 relative">
|
||||
{isReloading && (
|
||||
|
||||
@ -51,7 +51,7 @@ const DetailDialog = () => {
|
||||
<Button onClick={async() => {
|
||||
await handleApproveReject(detailKyc.id, 'N')
|
||||
reload()
|
||||
}} variant="destructive" color="warning" disabled={detailKyc.status_approve==='W'?false:true}>Reject</Button>
|
||||
}} variant="destructive" color="warning" disabled={detailKyc.status_approve!=='W'?true:false}>Reject</Button>
|
||||
<Button onClick={async() => {
|
||||
await handleApproveReject(detailKyc.id, 'Y')
|
||||
reload()
|
||||
|
||||
Reference in New Issue
Block a user