diff --git a/components/Dashboard/Header.tsx b/components/Dashboard/Header.tsx index 323b83d..1dc26ca 100644 --- a/components/Dashboard/Header.tsx +++ b/components/Dashboard/Header.tsx @@ -15,6 +15,7 @@ import { FaDatabase, FaMicrophoneAltSlash, FaVolumeMute, + FaLayerGroup, } from "react-icons/fa"; import { useTeamDashboardContext } from "../../contexts/teamDashboardContext"; import router from "next/router"; @@ -123,12 +124,17 @@ export default function Header() { const TeamsMenu = ( - }> + window.open("/teams", "_self")} + key={"team hub"} + icon={} + > + + + }> - - {/* all current teams that this person is a part of */} {usersTeams && usersTeams.map((uteam, i) => { @@ -145,17 +151,6 @@ export default function Header() { ); })} - - - - {/* create TEAM */} - } - onClick={() => router.push("/teams/create")} - > - - ); const UserMenu = ( diff --git a/models/team.ts b/models/team.ts index ea4cdef..555196b 100644 --- a/models/team.ts +++ b/models/team.ts @@ -6,8 +6,8 @@ export class Team { status: TeamStatus; - allowedUserCount: number; - subscriptionPlan: TeamSubscriptionPlan; + allowedUserCount: number = 2; + // subscriptionPlan: TeamSubscriptionPlan = TeamSubscriptionPlan.basic companySite: string; diff --git a/pages/teams/index.tsx b/pages/teams/index.tsx index 693a954..c1789e8 100644 --- a/pages/teams/index.tsx +++ b/pages/teams/index.tsx @@ -124,6 +124,7 @@ function RouteHandler() { {/* all teams part of */}
{teams.map((team) => { + console.log(team); return ( - - {team.name} + + + {team.name} + + + + {team.allowedUserCount || 2} + + {team.companySite && (