Feat: remplacement liste groupe par listes classique.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import ListGroup from "react-bootstrap/ListGroup";
|
|
||||||
import { Athlete, Activite } from "../classes";
|
import { Athlete, Activite } from "../classes";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -9,26 +8,22 @@ type Props = {
|
|||||||
|
|
||||||
function AthleteList({ athletes }: Props) {
|
function AthleteList({ athletes }: Props) {
|
||||||
return (
|
return (
|
||||||
<ListGroup>
|
<ul className="AthleteList">
|
||||||
{athletes.map((athlete) => (
|
{athletes.map((athlete) => (
|
||||||
<ListGroup.Item key={athlete.id}>
|
<li key={athlete.id}>
|
||||||
<div>
|
<div><strong>Nom:</strong> {athlete.nom}</div>
|
||||||
<strong>Nom:</strong> {athlete.nom}
|
<div><strong>Groupe:</strong> {athlete.groupe}</div>
|
||||||
</div>
|
</li>
|
||||||
<div>
|
|
||||||
<strong>Groupe:</strong> {athlete.groupe}
|
|
||||||
</div>
|
|
||||||
</ListGroup.Item>
|
|
||||||
))}
|
))}
|
||||||
</ListGroup>
|
</ul>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ActiviteList({ activites }: Props) {
|
function ActiviteList({ activites }: Props) {
|
||||||
return (
|
return (
|
||||||
<ListGroup>
|
<ul className="ActiviteList">
|
||||||
{activites.map((activite) => (
|
{activites.map((activite) => (
|
||||||
<ListGroup.Item key={activite.id}>
|
<li key={activite.id}>
|
||||||
<div>
|
<div>
|
||||||
<strong>Nom:</strong> {activite.nom}
|
<strong>Nom:</strong> {activite.nom}
|
||||||
</div>
|
</div>
|
||||||
@@ -38,9 +33,9 @@ function ActiviteList({ activites }: Props) {
|
|||||||
<div>
|
<div>
|
||||||
<strong>Durée:</strong> {activite.duree} minutes
|
<strong>Durée:</strong> {activite.duree} minutes
|
||||||
</div>
|
</div>
|
||||||
</ListGroup.Item>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ListGroup>
|
</ul>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user