deletio
This commit is contained in:
@ -88,20 +88,6 @@ const AgentBalance = () => {
|
|||||||
setFormData(initBalance);
|
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() {
|
function createGroup() {
|
||||||
setDialogType('create');
|
setDialogType('create');
|
||||||
openDialog();
|
openDialog();
|
||||||
@ -117,33 +103,6 @@ const AgentBalance = () => {
|
|||||||
fetchAgentBalance();
|
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 />;
|
if (loading) return <LoaderTransparant />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -174,7 +133,6 @@ const AgentBalance = () => {
|
|||||||
<span className="text-sm">Agent Balances</span>
|
<span className="text-sm">Agent Balances</span>
|
||||||
</Link>
|
</Link>
|
||||||
</Breadcrumbs>
|
</Breadcrumbs>
|
||||||
{/* <div className="w-full overflow-x-auto px-4"> */}
|
|
||||||
|
|
||||||
<div className="grid gap-5 lg:gap-7.5 mt-5 relative">
|
<div className="grid gap-5 lg:gap-7.5 mt-5 relative">
|
||||||
{isReloading && (
|
{isReloading && (
|
||||||
|
|||||||
@ -51,7 +51,7 @@ const DetailDialog = () => {
|
|||||||
<Button onClick={async() => {
|
<Button onClick={async() => {
|
||||||
await handleApproveReject(detailKyc.id, 'N')
|
await handleApproveReject(detailKyc.id, 'N')
|
||||||
reload()
|
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() => {
|
<Button onClick={async() => {
|
||||||
await handleApproveReject(detailKyc.id, 'Y')
|
await handleApproveReject(detailKyc.id, 'Y')
|
||||||
reload()
|
reload()
|
||||||
|
|||||||
Reference in New Issue
Block a user