Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigMcCahill committed Dec 14, 2022
1 parent d071851 commit 145459e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Card/TitleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const titleCardIconBackground = {

export type TitlePageType =
| {
page: "unit" | "subject" | "lesson";
page: "unit" | "subject" | "lessons";
keyStage: string;
keyStageSlug: string;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Lessons/LessonList/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./LessonList";
4 changes: 0 additions & 4 deletions src/node-lib/curriculum-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import teachersKeyStageSubjectTiersFixture from "./fixtures/teachersKeyStageSubj
import teachersKeyStageSubjectTiersPathsFixture from "./fixtures/teachersKeyStageSubjectTiersPaths.fixture";
import teachersKeyStageSubjectUnitsFixture from "./fixtures/teachersKeyStageSubjectUnits.fixture";
import teachersKeyStageSubjectUnitsPathsFixture from "./fixtures/teachersKeyStageSubjectUnitsPaths.fixture";
import teachersKeyStageSubjectUnitsLessonsFixture from "./fixtures/teachersLessons.fixture";
import _curriculumApi, { CurriculumApi } from "./_index";

export type {
Expand Down Expand Up @@ -35,9 +34,6 @@ const curriculumApi: CurriculumApi = {
teachersKeyStageSubjectUnits: async () => {
return teachersKeyStageSubjectUnitsFixture();
},
teachersKeyStageSubjectUnitsLessons: async () => {
return teachersKeyStageSubjectUnitsLessonsFixture();
},
};

export default curriculumApi;
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const LessonListPage: NextPage<LessonListPageProps> = ({ curriculumData }) => {
/>
</Flex>
<TitleCard
page={"lesson"}
page={"lessons"}
keyStage={keyStageTitle}
keyStageSlug={keyStageSlug}
title={unitTitle}
Expand Down

0 comments on commit 145459e

Please sign in to comment.