Update loading terus menerus
This commit is contained in:
@@ -298,26 +298,26 @@ export default function List() {
|
|||||||
setData(
|
setData(
|
||||||
response.data.data.map((obj: any) => ({
|
response.data.data.map((obj: any) => ({
|
||||||
...obj,
|
...obj,
|
||||||
start_date: <Label>{obj.start_date ? fDateSuffix(obj.start_date) : '-'}</Label>,
|
start_date: obj.start_date ? <Label>{fDateSuffix(obj.start_date)}</Label> : '-',
|
||||||
end_date: <Label> {obj.end_date ? fDateSuffix(obj.end_date) : '-'}</Label>,
|
end_date: obj.end_date ? <Label>{fDateSuffix(obj.end_date)}</Label> : '-',
|
||||||
action: (
|
action: (
|
||||||
<TableMoreMenu
|
<TableMoreMenu
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
<MenuItem onClick={() => navigate('member/' + obj.id)}>
|
<MenuItem onClick={() => navigate('member/' + obj.id)}>
|
||||||
<VisibilityOutlinedIcon />
|
<VisibilityOutlinedIcon />
|
||||||
View
|
View
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem onClick={() => handleDocumentClick(obj.link_document)}>
|
<MenuItem onClick={() => handleDocumentClick(obj.link_document)}>
|
||||||
<Download />
|
<Download />
|
||||||
Document Member
|
Document Member
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
),
|
),
|
||||||
}))
|
}))
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
setPaginationTable(response.data);
|
setPaginationTable(response.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user