about complex page created
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
function AboutComplexPage() {
|
||||
return <div></div>;
|
||||
}
|
||||
|
||||
export default AboutComplexPage;
|
||||
@@ -73,17 +73,17 @@ function SearchPage() {
|
||||
view ? `&view=${view}` : ""
|
||||
}${
|
||||
debouncedCost.length > 0
|
||||
? `&cost=${debouncedCost.map(Math.round).join(",")}`
|
||||
? `&cost=${debouncedCost.map(Math.round).join()}`
|
||||
: ""
|
||||
}${
|
||||
debouncedFloor.length > 0
|
||||
? `&floor=${debouncedFloor.map(Math.round).join(",")}`
|
||||
? `&floor=${debouncedFloor.map(Math.round).join()}`
|
||||
: ""
|
||||
}${
|
||||
debouncedArea.length > 0
|
||||
? `&area=${debouncedArea.map(Math.round).join(",")}`
|
||||
? `&area=${debouncedArea.map(Math.round).join()}`
|
||||
: ""
|
||||
}${sort ? `&order=${SORT_OPTIONS[sort].split(" ").join(",")}` : ""}`
|
||||
}${sort ? `&order=${SORT_OPTIONS[sort].split(" ").join()}` : ""}`
|
||||
)
|
||||
.json<IUnit[]>(),
|
||||
getNextPageParam: (lastPage, _, lastPageIndex) =>
|
||||
@@ -93,6 +93,8 @@ function SearchPage() {
|
||||
const filtersRef = useRef<HTMLDivElement>(null);
|
||||
const observerRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
useEffect(() => window.scrollTo({ top: 0, behavior: "smooth" }), []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!hasNextPage || isFetchingNextPage) return;
|
||||
const observerElement = observerRef.current;
|
||||
|
||||
Reference in New Issue
Block a user