added payment history, setting pages
This commit is contained in:
1 parent
1c0cbf1023
commit
1ebc133d1c
35 files changed
+1626
-1273
No files matched your search
@@ -53,14 +53,17 @@ export function BranchesListPage() {
|
||||
uniqueCode: uniqueCodeFilter,
|
||||
});
|
||||
|
||||
const [filterEnabled, setFilterEnabled] = useState(false);
|
||||
const [provinceSearch, setProvinceSearch] = useState("");
|
||||
const isProvinceFilterEnabled = filterEnabled || Boolean(provinceIdFilter);
|
||||
|
||||
const {
|
||||
data: provincesInfiniteData,
|
||||
fetchNextPage: fetchNextProvinces,
|
||||
hasNextPage: hasNextProvinces,
|
||||
isFetchingNextPage: isFetchingNextProvinces,
|
||||
isLoading: isProvincesLoading,
|
||||
} = useInfiniteProvinces(provinceSearch);
|
||||
} = useInfiniteProvinces(provinceSearch, isProvinceFilterEnabled);
|
||||
|
||||
const provinceOptions = useMemo(
|
||||
() =>
|
||||
@@ -233,6 +236,9 @@ export function BranchesListPage() {
|
||||
setPerPage(v);
|
||||
setPage(1);
|
||||
}}
|
||||
onFilterOpenChange={(open) => {
|
||||
if (open) setFilterEnabled(true);
|
||||
}}
|
||||
hideSearch
|
||||
hideAction
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user