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

@ -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 };
};