From 329829b8261ba3871b9eafaf28f5da4ece28b02a Mon Sep 17 00:00:00 2001 From: Serena Li <40174697+acrantel@users.noreply.github.com> Date: Tue, 24 Oct 2023 16:29:18 -0400 Subject: [PATCH] Add the my team settings page (#680) --- frontend2/src/App.tsx | 2 + frontend2/src/components/Header.tsx | 2 +- frontend2/src/components/JoinTeam.tsx | 7 + frontend2/src/components/SectionCard.tsx | 27 ++++ .../elements/DescriptiveCheckbox.tsx | 46 ++++++ .../src/components/elements/FormLabel.tsx | 2 +- frontend2/src/components/elements/Input.tsx | 9 +- .../src/components/elements/SelectMenu.tsx | 2 +- .../src/components/elements/TextArea.tsx | 38 +++++ frontend2/src/components/team/MemberList.tsx | 57 +++++++ frontend2/src/contexts/CurrentTeamContext.ts | 2 + .../src/contexts/CurrentTeamProvider.tsx | 4 +- frontend2/src/index.css | 10 +- frontend2/src/views/MyTeam.tsx | 150 ++++++++++++++++++ 14 files changed, 347 insertions(+), 11 deletions(-) create mode 100644 frontend2/src/components/JoinTeam.tsx create mode 100644 frontend2/src/components/SectionCard.tsx create mode 100644 frontend2/src/components/elements/DescriptiveCheckbox.tsx create mode 100644 frontend2/src/components/elements/TextArea.tsx create mode 100644 frontend2/src/components/team/MemberList.tsx create mode 100644 frontend2/src/views/MyTeam.tsx diff --git a/frontend2/src/App.tsx b/frontend2/src/App.tsx index cb952ba4c..cf2c9ac7c 100644 --- a/frontend2/src/App.tsx +++ b/frontend2/src/App.tsx @@ -24,6 +24,7 @@ import Resources from "./views/Resources"; import { CurrentTeamProvider } from "./contexts/CurrentTeamProvider"; import { EpisodeProvider } from "./contexts/EpisodeProvider"; import Scrimmaging from "./views/Scrimmaging"; +import MyTeam from "./views/MyTeam"; const App: React.FC = () => { return ( @@ -55,6 +56,7 @@ const router = createBrowserRouter([ // TODO: /:episodeId/submissions { path: "/:episodeId/team", + element: , }, { path: "/:episodeId/scrimmaging", element: }, ], diff --git a/frontend2/src/components/Header.tsx b/frontend2/src/components/Header.tsx index 356d04dff..70d96cef3 100644 --- a/frontend2/src/components/Header.tsx +++ b/frontend2/src/components/Header.tsx @@ -11,7 +11,7 @@ const Header: React.FC = () => { const { episodeId } = useEpisodeId(); return ( -