From fb21950e7a3599db0ca662e94c6c9a22b12963f8 Mon Sep 17 00:00:00 2001 From: Victor Turgeon <76506447+Medenos@users.noreply.github.com> Date: Sun, 30 Oct 2022 12:43:11 -0700 Subject: [PATCH] Recherche dans la page de morceau --- GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js index 243f016..c9990b1 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js @@ -1,10 +1,10 @@ -import { Button } from 'react-bootstrap'; import { useEffect } from "react"; import ItemList from "../components/ItemList"; import { useState } from 'react'; import Sorting from "../components/Sorting" import Filters from '../components/Filters'; import { useLocation } from 'react-router-dom'; +import ResearchBar from "../components/ResearchBar"; const Morceaux = () => { @@ -21,6 +21,7 @@ const Morceaux = () => { useEffect(() => { document.title = 'Morceaux'; setIsLoading(true); + setIsSearch(false); async function fetchData(isSearch) { @@ -45,7 +46,7 @@ const Morceaux = () => { } setIsLoading(false); - }, []); + }, [state]); const handleNextItems = async () => { @@ -107,6 +108,7 @@ const Morceaux = () => { return (
+