From 74f8c40e45ecbeb82ba5808c0bee2436c8dde686 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Sat, 15 Jan 2022 13:52:44 -0800 Subject: [PATCH] adjustments to add team role and other better stuff --- components/Dashboard/Header.tsx | 17 +++---- components/Dashboard/TeamVoiceLine.tsx | 2 +- models/user.ts | 54 ++++++++++++--------- pages/teams/[teamid]/admin.tsx | 5 +- pages/teams/profile.tsx | 66 +++++++++++++++++--------- services/teamService.tsx | 9 ++++ 6 files changed, 95 insertions(+), 58 deletions(-) diff --git a/components/Dashboard/Header.tsx b/components/Dashboard/Header.tsx index e38ccda..39e4df1 100644 --- a/components/Dashboard/Header.tsx +++ b/components/Dashboard/Header.tsx @@ -12,6 +12,7 @@ import { FaPeopleCarry, FaAngleDown, FaCheck, + FaDatabase, } from "react-icons/fa"; import { useTeamDashboardContext } from "../../contexts/teamDashboardContext"; import router from "next/router"; @@ -77,6 +78,12 @@ export default function Header() { const TeamsMenu = ( + }> + + + + + {/* all current teams that this person is a part of */} {usersTeams && usersTeams.map((uteam, i) => { @@ -100,6 +107,7 @@ export default function Header() { + {/* create TEAM */} }> ); const UserMenu = ( - - - - - -