diff --git a/front_end/src/components/ressourceList.tsx b/front_end/src/components/ressourceList.tsx index b398a54..66e767f 100644 --- a/front_end/src/components/ressourceList.tsx +++ b/front_end/src/components/ressourceList.tsx @@ -1,4 +1,3 @@ -import ListGroup from "react-bootstrap/ListGroup"; import { Athlete, Activite } from "../classes"; type Props = { @@ -9,26 +8,22 @@ type Props = { function AthleteList({ athletes }: Props) { return ( - + ); } function ActiviteList({ activites }: Props) { return ( - + ); } diff --git a/front_end/src/components/ressourcePanel.tsx b/front_end/src/components/ressourcePanel.tsx index 1d9ccd1..6109e9a 100644 --- a/front_end/src/components/ressourcePanel.tsx +++ b/front_end/src/components/ressourcePanel.tsx @@ -2,7 +2,7 @@ import { useState } from "react"; import { useLocalData } from "../context/useLocalData"; import { AthleteList, ActiviteList } from "./ressourceList"; import { Activite, Athlete } from "../classes"; -import { Dropdown } from "react-bootstrap"; +// import { Dropdown } from "react-bootstrap"; // not used export default function RessourcePanel() { const { user } = useLocalData(); @@ -34,17 +34,18 @@ export default function RessourcePanel() { return (
- - - Sélectionner la ressource - - - Athlètes - Activités - - - - + {showAthletes && (
@@ -52,13 +53,14 @@ export default function RessourcePanel() {
)} + {showActivites && (

Liste des activités

)} - +
); }