diff --git a/front/views/TeamPanel.tsx b/front/views/TeamPanel.tsx index c7f1a3d..81094ce 100644 --- a/front/views/TeamPanel.tsx +++ b/front/views/TeamPanel.tsx @@ -1,7 +1,5 @@ - import '../style/teamPanel.css' - interface TeamInfo{ id: number name: string @@ -17,7 +15,9 @@ interface Team { interface Member{ id: number - + name: string + mail: string + profilePicture: string role: string } @@ -25,19 +25,31 @@ interface Member{ export default function TeamPanel({isCoach, team}: {isCoach: boolean, team: Team }){ return (
- +
+ +
+
+ {isCoach ? () : ()} +
+
+

Membres :

+ +
) } -function TeamDisplay({name,picture,mainColor,secondColor}: {name: string,picture : string,mainColor}) { +function TeamDisplay({ team}: {team : TeamInfo}) { return (
-

{name}

- -
-
- +
+

{team.name}

+ Logo d'équipe +
+
+ + +
) } @@ -45,9 +57,28 @@ function TeamDisplay({name,picture,mainColor,secondColor}: {name: string,picture function Color({color}: {color : string}){ return(

Couleur principale :

-
+
) } +function CoachOptions (){ + + return ( +
+ + +
+ ) +} +function MemberDisplay({member}: {member : Member}){ + return ( +
+ Photo de profile +

{member.name}

+

{member.role}

+

{member.mail}

+
+ ) +}