react-version #1

Merged
memartel_loc merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
Showing only changes of commit fb21950e7a - Show all commits

View File

@ -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 (
<div className="morceaux" >
<ResearchBar />
<div className="morceaux-options-container">
<div className='filters-container'>
<Filters onChange={handleFilters} />