Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Franqsanz committed Aug 9, 2024
1 parent 90bb521 commit d6a067a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Search.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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';
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -243,6 +245,7 @@ export default function Search() {

return (
<>
<ScrollRestoration />
<MainHead title={`${param} | XBuniverse`} />
<ContainerTitle title={`${param}`} />
<MySliderCategories />
Expand Down

0 comments on commit d6a067a

Please sign in to comment.