update manage reward

This commit is contained in:
Raja Oktafrianto
2025-04-08 11:15:34 +07:00
parent 758329ec2e
commit ecff71247c
14 changed files with 837 additions and 7 deletions

View File

@ -51,7 +51,7 @@ const DeleteDialog = () => {
<Alert variant="warning">
<h3 className="text-lg">Are you sure?</h3>
<span className="text-sm">you will delete this data!</span>
<div className="mt-2 flex items-center gap-x-2">
{/* <div className="mt-2 flex items-center gap-x-2">
<label className="form-label max-w-56">Hard Delete</label>
<EnforceSwitch
enforce={enforce}
@ -59,7 +59,7 @@ const DeleteDialog = () => {
setEnforce(e.target.checked);
}}
/>
</div>
</div> */}
</Alert>
{alert.show && (
<Alert variant="danger">

View File

@ -120,7 +120,7 @@ const ManageUserContextProvider = ({ children }: { children: React.ReactNode })
enableHiding: false,
cell: (data: any) => {
const { role } = data.row.original;
console.log('role :', role);
// console.log('role :', role);
let html = <p className="text-danger italic">Unassigned</p>;
if (role && role.name) html = role.name;
return html;
@ -198,6 +198,7 @@ const ManageUserContextProvider = ({ children }: { children: React.ReactNode })
order_direction: sorting[0].desc == false ? 'ASC' : 'DESC',
filter: JSON.stringify(filter)
});
console.log('response api:', response);
return { data: response?.data.list, totalCount: response?.data.total_count };
};