From d6a067a0692081919ca5b09f38202b97a2ba5648 Mon Sep 17 00:00:00 2001 From: franco sanchez Date: Fri, 9 Aug 2024 10:48:05 -0300 Subject: [PATCH] chore: minor changes --- src/pages/Search.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/Search.tsx b/src/pages/Search.tsx index f0aa785..3f3f920 100644 --- a/src/pages/Search.tsx +++ b/src/pages/Search.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { useParams, useLocation } from 'react-router-dom'; +import { useParams, useLocation, ScrollRestoration } from 'react-router-dom'; import { CgOptions } from 'react-icons/cg'; import { useInView } from 'react-intersection-observer'; import { @@ -21,6 +21,7 @@ import { import { Card } from '@components/cards/Card'; import { CardType } from '@components/types'; import { useFilter, useFilterPaginated } from '@hooks/queries'; +// import { useScrollRestoration } from '@hooks/useScrollRestoration'; import { ContainerTitle } from '@components/ContainerTitle'; import { MySimpleGrid } from '@components/MySimpleGrid'; import { MainHead } from '@components/Head'; @@ -84,6 +85,7 @@ export default function Search() { } const results = getNormalizedResults(); + // useScrollRestoration(isPendingPaginated); // Restablece la posiciĆ³n del scroll al volver de la vista del libro useEffect(() => { let isMounted = true; @@ -243,6 +245,7 @@ export default function Search() { return ( <> +