rename function

This commit is contained in:
Subham Ray
2023-04-24 23:13:38 +05:30
parent 6d30a486ab
commit b2d09216c8
+2 -2
View File
@@ -89,7 +89,7 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
return filteredDocuments; return filteredDocuments;
} }
function handleSetSelectedStatusFilter(status: statusFilterType) { function handleStatusFilterChange(status: statusFilterType) {
router.replace( router.replace(
{ {
pathname: router.pathname, pathname: router.pathname,
@@ -158,7 +158,7 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
label="Status" label="Status"
options={statusFilters} options={statusFilters}
value={selectedStatusFilter} value={selectedStatusFilter}
onChange={handleSetSelectedStatusFilter} onChange={handleStatusFilterChange}
/> />
</div> </div>
<div className="mt-20 max-w-[1100px]" hidden={!loading}> <div className="mt-20 max-w-[1100px]" hidden={!loading}>