From 52476eb6963527602235601269166a419168af87 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Wed, 30 Oct 2024 09:41:50 -0500 Subject: [PATCH] Rebase; move context to .ts --- src/app/pages/subjects/new/{context.tsx => context.ts} | 0 src/app/pages/subjects/new/specific/context.ts | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/app/pages/subjects/new/{context.tsx => context.ts} (100%) diff --git a/src/app/pages/subjects/new/context.tsx b/src/app/pages/subjects/new/context.ts similarity index 100% rename from src/app/pages/subjects/new/context.tsx rename to src/app/pages/subjects/new/context.ts diff --git a/src/app/pages/subjects/new/specific/context.ts b/src/app/pages/subjects/new/specific/context.ts index 08b41aa1d..6f3dcb5a0 100644 --- a/src/app/pages/subjects/new/specific/context.ts +++ b/src/app/pages/subjects/new/specific/context.ts @@ -3,7 +3,7 @@ import usePageData from '~/helpers/use-page-data'; import buildContext from '~/components/jsx-helpers/build-context'; import {setPageTitleAndDescriptionFromBookData} from '~/helpers/use-document-head'; import {ImageData} from '../context'; -import type {InfoBox} from '../info-boxes'; +import type {InfoBoxValues} from '../info-boxes'; import type { AboutOsData } from '../about-openstax'; import {LocaleEntry} from '~/components/language-selector/language-selector'; import type {OsTextbookCategory} from './learn-more'; @@ -65,7 +65,7 @@ type SpecificSubjectPageData = { tutorAd: SectionInfo; aboutOs: {content: AboutOsData}; webinarHeader: WebinarSectionInfo; - infoBoxes: InfoBox; + infoBoxes: InfoBoxValues; blogHeader: BlogSectionInfo; osTextbookHeading: string; osTextbookCategories: [OsTextbookCategory[]];