From 095bec374e071504997dfb1a2ce96cfbc8160491 Mon Sep 17 00:00:00 2001 From: Serena Li Date: Tue, 17 Oct 2023 20:52:16 -0400 Subject: [PATCH 1/3] sketch out myteam page --- frontend2/src/App.tsx | 2 + frontend2/src/components/Header.tsx | 2 +- 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 | 58 ++++++++ frontend2/src/index.css | 10 +- frontend2/src/views/MyTeam.tsx | 140 ++++++++++++++++++ 11 files changed, 326 insertions(+), 10 deletions(-) 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 ( -