From 9bae63b93e75480c54888df994ce5d577b069dcb Mon Sep 17 00:00:00 2001 From: danieldeng2 <danieldeng223@gmail.com> Date: Sat, 8 Aug 2020 14:11:32 +0100 Subject: [PATCH] Change naming of tabs --- .../src/components/organisms/LeftBarModule/index.tsx | 8 ++++---- .../{ModuleMaterials => ModuleFeedback}/index.tsx | 6 +++--- .../style.module.scss | 0 .../{ModuleCoursework => ModuleResources}/index.tsx | 6 +++--- .../style.module.scss | 0 frontend/src/components/pages/StandardView/index.tsx | 12 ++++++------ 6 files changed, 16 insertions(+), 16 deletions(-) rename frontend/src/components/pages/{ModuleMaterials => ModuleFeedback}/index.tsx (74%) rename frontend/src/components/pages/{ModuleCoursework => ModuleFeedback}/style.module.scss (100%) rename frontend/src/components/pages/{ModuleCoursework => ModuleResources}/index.tsx (73%) rename frontend/src/components/pages/{ModuleMaterials => ModuleResources}/style.module.scss (100%) diff --git a/frontend/src/components/organisms/LeftBarModule/index.tsx b/frontend/src/components/organisms/LeftBarModule/index.tsx index 47cb5e0ed..c621898ed 100644 --- a/frontend/src/components/organisms/LeftBarModule/index.tsx +++ b/frontend/src/components/organisms/LeftBarModule/index.tsx @@ -27,12 +27,12 @@ const LeftBarModule: React.FC = () => { activeURL: "overview", }, { - title: "Coursework", - activeURL: "coursework", + title: "Feedback", + activeURL: "feedback", }, { - title: "Materials", - activeURL: "materials", + title: "Resources", + activeURL: "resources", }, { title: "Piazza", diff --git a/frontend/src/components/pages/ModuleMaterials/index.tsx b/frontend/src/components/pages/ModuleFeedback/index.tsx similarity index 74% rename from frontend/src/components/pages/ModuleMaterials/index.tsx rename to frontend/src/components/pages/ModuleFeedback/index.tsx index d2fa42899..f10ac1f2c 100644 --- a/frontend/src/components/pages/ModuleMaterials/index.tsx +++ b/frontend/src/components/pages/ModuleFeedback/index.tsx @@ -5,12 +5,12 @@ import Container from "react-bootstrap/Container"; import classNames from "classnames"; import Dandruff from "components/molecules/Dandruff"; -const ModuleMaterials: React.FC = () => { +const ModuleFeedback: React.FC = () => { return ( <Container className={classNames("p-4", styles.moduleContainer)}> - <Dandruff heading="Materials"/> + <Dandruff heading="Feedback"/> </Container> ); }; -export default ModuleMaterials; +export default ModuleFeedback; diff --git a/frontend/src/components/pages/ModuleCoursework/style.module.scss b/frontend/src/components/pages/ModuleFeedback/style.module.scss similarity index 100% rename from frontend/src/components/pages/ModuleCoursework/style.module.scss rename to frontend/src/components/pages/ModuleFeedback/style.module.scss diff --git a/frontend/src/components/pages/ModuleCoursework/index.tsx b/frontend/src/components/pages/ModuleResources/index.tsx similarity index 73% rename from frontend/src/components/pages/ModuleCoursework/index.tsx rename to frontend/src/components/pages/ModuleResources/index.tsx index 156864de1..2d626f3d4 100644 --- a/frontend/src/components/pages/ModuleCoursework/index.tsx +++ b/frontend/src/components/pages/ModuleResources/index.tsx @@ -5,12 +5,12 @@ import Container from "react-bootstrap/Container"; import classNames from "classnames"; import Dandruff from "components/molecules/Dandruff"; -const ModuleCoursework: React.FC = () => { +const ModuleResources: React.FC = () => { return ( <Container className={classNames("p-4", styles.moduleContainer)}> - <Dandruff heading="Coursework"/> + <Dandruff heading="Resources"/> </Container> ); }; -export default ModuleCoursework; +export default ModuleResources; diff --git a/frontend/src/components/pages/ModuleMaterials/style.module.scss b/frontend/src/components/pages/ModuleResources/style.module.scss similarity index 100% rename from frontend/src/components/pages/ModuleMaterials/style.module.scss rename to frontend/src/components/pages/ModuleResources/style.module.scss diff --git a/frontend/src/components/pages/StandardView/index.tsx b/frontend/src/components/pages/StandardView/index.tsx index aad2d0274..45fd145d5 100644 --- a/frontend/src/components/pages/StandardView/index.tsx +++ b/frontend/src/components/pages/StandardView/index.tsx @@ -7,8 +7,8 @@ import "./style.scss"; import RightBar from "components/organisms/RightBar"; import classNames from "classnames"; import ModuleList from "../ModuleList"; -import ModuleMaterials from "../ModuleMaterials"; -import ModuleCoursework from "../ModuleCoursework"; +import ModuleResources from "../ModuleResources"; +import ModuleFeedback from "../ModuleResources"; import LeftBarHome from "components/organisms/LeftBarHome"; import LeftBarModuleList from "components/organisms/LeftBarModuleList"; import LeftBarModule from "components/organisms/LeftBarModule"; @@ -66,12 +66,12 @@ const StandardView: React.FC<StandardViewProps> = ({ <ModuleOverview /> </Route> - <Route path="/modules/:id/materials"> - <ModuleMaterials /> + <Route path="/modules/:id/resources"> + <ModuleResources /> </Route> - <Route path="/modules/:id/coursework"> - <ModuleCoursework /> + <Route path="/modules/:id/feedback"> + <ModuleFeedback /> </Route> <Route path="/timeline"> -- GitLab