From 145459e4b13ef3419f8be1cd20a7b097bb057436 Mon Sep 17 00:00:00 2001 From: craigmccahill Date: Wed, 14 Dec 2022 14:22:41 +0000 Subject: [PATCH] fix: type errors --- src/components/Card/TitleCard.tsx | 2 +- src/components/Lessons/LessonList/index.ts | 1 + src/node-lib/curriculum-api/index.ts | 4 ---- .../subjects/[subjectSlug]/units/[unitSlug]/index.tsx | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/Card/TitleCard.tsx b/src/components/Card/TitleCard.tsx index f819a0ea01..0af29aa071 100644 --- a/src/components/Card/TitleCard.tsx +++ b/src/components/Card/TitleCard.tsx @@ -15,7 +15,7 @@ export const titleCardIconBackground = { export type TitlePageType = | { - page: "unit" | "subject" | "lesson"; + page: "unit" | "subject" | "lessons"; keyStage: string; keyStageSlug: string; } diff --git a/src/components/Lessons/LessonList/index.ts b/src/components/Lessons/LessonList/index.ts index e69de29bb2..60ce75070d 100644 --- a/src/components/Lessons/LessonList/index.ts +++ b/src/components/Lessons/LessonList/index.ts @@ -0,0 +1 @@ +export { default } from "./LessonList"; diff --git a/src/node-lib/curriculum-api/index.ts b/src/node-lib/curriculum-api/index.ts index 6ba1ab6147..df23d109dc 100644 --- a/src/node-lib/curriculum-api/index.ts +++ b/src/node-lib/curriculum-api/index.ts @@ -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 { @@ -35,9 +34,6 @@ const curriculumApi: CurriculumApi = { teachersKeyStageSubjectUnits: async () => { return teachersKeyStageSubjectUnitsFixture(); }, - teachersKeyStageSubjectUnitsLessons: async () => { - return teachersKeyStageSubjectUnitsLessonsFixture(); - }, }; export default curriculumApi; diff --git a/src/pages/beta/teachers/key-stages/[keyStageSlug]/subjects/[subjectSlug]/units/[unitSlug]/index.tsx b/src/pages/beta/teachers/key-stages/[keyStageSlug]/subjects/[subjectSlug]/units/[unitSlug]/index.tsx index e44eeade22..54e66e9e17 100644 --- a/src/pages/beta/teachers/key-stages/[keyStageSlug]/subjects/[subjectSlug]/units/[unitSlug]/index.tsx +++ b/src/pages/beta/teachers/key-stages/[keyStageSlug]/subjects/[subjectSlug]/units/[unitSlug]/index.tsx @@ -49,7 +49,7 @@ const LessonListPage: NextPage = ({ curriculumData }) => { />