create member

This commit is contained in:
unknown
2025-04-14 16:47:26 +07:00
parent a003a38cd1
commit d696d696de
6 changed files with 133 additions and 105 deletions

View File

@ -157,7 +157,8 @@ const Kyc = () => {
}
if (dialogType === 'update') {
await axios.put(`${BASE_URL}/customer/update/${customerId}`, form);
if (updateData.isneedapproval == 1) await axios.post(`${BASE_URL}/customer/approve`, { customerid: customerId, description: description});
if (updateData.isneedapproval == 1&&destinationGroup === "Premium") await axios.post(`${BASE_URL}/customer/approve`, { customerid: customerId, description: updateData.approval_description_premium});
if (updateData.isneedapproval == 1&&destinationGroup === "Agent") await axios.post(`${BASE_URL}/customer/approve`, { customerid: customerId, description: updateData.approval_description_agent});
}
await fetchCustomers();
setDialogOpen(false);
@ -233,6 +234,7 @@ const Kyc = () => {
<div className="w-full overflow-x-auto px-4">
<div className="min-w-[800px]">
<DataTable
createData={null}
data={members}
columns={columns}
onUpdate={handleUpdate}