reload implemantation
This commit is contained in:
@ -15,7 +15,7 @@ const HeaderTopbar = () => {
|
|||||||
const handleDropdownChatShow = () => {
|
const handleDropdownChatShow = () => {
|
||||||
window.dispatchEvent(new Event('resize'));
|
window.dispatchEvent(new Event('resize'));
|
||||||
};
|
};
|
||||||
console.log(getAuth())
|
// console.log(getAuth())
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-4">
|
||||||
<div className="hidden md:flex flex-col items-end mr-2 text-right">
|
<div className="hidden md:flex flex-col items-end mr-2 text-right">
|
||||||
|
|||||||
@ -26,7 +26,7 @@ const API_URL = apiConfig.transaction;
|
|||||||
|
|
||||||
const ApprovalDialog = () => {
|
const ApprovalDialog = () => {
|
||||||
const { GetData, PostData } = useCallApi();
|
const { GetData, PostData } = useCallApi();
|
||||||
// const { table, reload } = useDataGrid();
|
const { reload } = useDataGrid();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
showApprovalDialog,
|
showApprovalDialog,
|
||||||
@ -85,7 +85,7 @@ const ApprovalDialog = () => {
|
|||||||
};
|
};
|
||||||
doSaveLogActivity(createActivity);
|
doSaveLogActivity(createActivity);
|
||||||
setShowApprovalDialog(false);
|
setShowApprovalDialog(false);
|
||||||
// reload();
|
reload();
|
||||||
} else {
|
} else {
|
||||||
setAlert({ show: true, message: response?.message });
|
setAlert({ show: true, message: response?.message });
|
||||||
}
|
}
|
||||||
|
|||||||
@ -326,8 +326,6 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Toaster expand visibleToasts={9} duration={3000} />
|
<Toaster expand visibleToasts={9} duration={3000} />
|
||||||
<DetailApprovalTransaction />
|
|
||||||
<ApprovalDialog />
|
|
||||||
|
|
||||||
<DataGridProvider
|
<DataGridProvider
|
||||||
columns={columns}
|
columns={columns}
|
||||||
@ -340,6 +338,8 @@ const ApprovalTransactionProvider = ({ children }: { children: React.ReactNode }
|
|||||||
getTransactionLists(pageIndex, pageSize, sorting, columnFilters)
|
getTransactionLists(pageIndex, pageSize, sorting, columnFilters)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
<DetailApprovalTransaction />
|
||||||
|
<ApprovalDialog />
|
||||||
{children}
|
{children}
|
||||||
</DataGridProvider>
|
</DataGridProvider>
|
||||||
</ManageApprovalTransactionContext.Provider>
|
</ManageApprovalTransactionContext.Provider>
|
||||||
|
|||||||
Reference in New Issue
Block a user