From 60c995dce6e3e023af7c7c3054c91f6c5608e8fb Mon Sep 17 00:00:00 2001 From: danieldeng2 <danieldeng223@gmail.com> Date: Sat, 8 Aug 2020 14:25:23 +0100 Subject: [PATCH] Minor bug fixes --- frontend/src/components/atoms/ModuleCard/index.tsx | 6 +++--- frontend/src/components/pages/StandardView/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/atoms/ModuleCard/index.tsx b/frontend/src/components/atoms/ModuleCard/index.tsx index dab2b89b2..cec15728d 100644 --- a/frontend/src/components/atoms/ModuleCard/index.tsx +++ b/frontend/src/components/atoms/ModuleCard/index.tsx @@ -37,11 +37,11 @@ const ModuleCard: React.FC<ModuleCardProps> = ({ module }: ModuleCardProps) => { {module.terms.map((term: Term) => { switch (term) { case Term.AUTUMN: - return <FontAwesomeIcon icon={faLeaf} />; + return <FontAwesomeIcon icon={faLeaf} key={Term.AUTUMN}/>; case Term.SPRING: - return <FontAwesomeIcon icon={faSeedling} />; + return <FontAwesomeIcon icon={faSeedling} key={Term.SPRING}/>; case Term.SUMMER: - return <FontAwesomeIcon icon={faSun} />; + return <FontAwesomeIcon icon={faSun} key={Term.SUMMER}/>; default: return ""; } diff --git a/frontend/src/components/pages/StandardView/index.tsx b/frontend/src/components/pages/StandardView/index.tsx index 45fd145d5..cfa68f8a4 100644 --- a/frontend/src/components/pages/StandardView/index.tsx +++ b/frontend/src/components/pages/StandardView/index.tsx @@ -8,7 +8,7 @@ import RightBar from "components/organisms/RightBar"; import classNames from "classnames"; import ModuleList from "../ModuleList"; import ModuleResources from "../ModuleResources"; -import ModuleFeedback from "../ModuleResources"; +import ModuleFeedback from "../ModuleFeedback"; import LeftBarHome from "components/organisms/LeftBarHome"; import LeftBarModuleList from "components/organisms/LeftBarModuleList"; import LeftBarModule from "components/organisms/LeftBarModule"; -- GitLab