update manage reward
This commit is contained in:
@ -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">
|
||||
|
||||
@ -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 };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user