Skip to content
Snippets Groups Projects
Commit 60c995dc authored by danieldeng2's avatar danieldeng2
Browse files

Minor bug fixes

parent 9bae63b9
No related branches found
No related tags found
No related merge requests found
...@@ -37,11 +37,11 @@ const ModuleCard: React.FC<ModuleCardProps> = ({ module }: ModuleCardProps) => { ...@@ -37,11 +37,11 @@ const ModuleCard: React.FC<ModuleCardProps> = ({ module }: ModuleCardProps) => {
{module.terms.map((term: Term) => { {module.terms.map((term: Term) => {
switch (term) { switch (term) {
case Term.AUTUMN: case Term.AUTUMN:
return <FontAwesomeIcon icon={faLeaf} />; return <FontAwesomeIcon icon={faLeaf} key={Term.AUTUMN}/>;
case Term.SPRING: case Term.SPRING:
return <FontAwesomeIcon icon={faSeedling} />; return <FontAwesomeIcon icon={faSeedling} key={Term.SPRING}/>;
case Term.SUMMER: case Term.SUMMER:
return <FontAwesomeIcon icon={faSun} />; return <FontAwesomeIcon icon={faSun} key={Term.SUMMER}/>;
default: default:
return ""; return "";
} }
......
...@@ -8,7 +8,7 @@ import RightBar from "components/organisms/RightBar"; ...@@ -8,7 +8,7 @@ import RightBar from "components/organisms/RightBar";
import classNames from "classnames"; import classNames from "classnames";
import ModuleList from "../ModuleList"; import ModuleList from "../ModuleList";
import ModuleResources from "../ModuleResources"; import ModuleResources from "../ModuleResources";
import ModuleFeedback from "../ModuleResources"; import ModuleFeedback from "../ModuleFeedback";
import LeftBarHome from "components/organisms/LeftBarHome"; import LeftBarHome from "components/organisms/LeftBarHome";
import LeftBarModuleList from "components/organisms/LeftBarModuleList"; import LeftBarModuleList from "components/organisms/LeftBarModuleList";
import LeftBarModule from "components/organisms/LeftBarModule"; import LeftBarModule from "components/organisms/LeftBarModule";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment