From 32be9042265f0c11c6070c3819aa35098356996d Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Fri, 11 Oct 2024 17:21:58 -0500 Subject: [PATCH] philanthropic-support --- src/app/pages/subjects/new/context.tsx | 1 + src/app/pages/subjects/new/import-philanthropic-support.js | 3 +++ .../{philanthropic-support.js => philanthropic-support.tsx} | 6 +++++- src/app/pages/subjects/new/specific/specific.tsx | 2 +- src/app/pages/subjects/new/subjects.tsx | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 src/app/pages/subjects/new/import-philanthropic-support.js rename src/app/pages/subjects/new/{philanthropic-support.js => philanthropic-support.tsx} (74%) diff --git a/src/app/pages/subjects/new/context.tsx b/src/app/pages/subjects/new/context.tsx index fa783d711..28b78629c 100644 --- a/src/app/pages/subjects/new/context.tsx +++ b/src/app/pages/subjects/new/context.tsx @@ -40,6 +40,7 @@ type SubjectsPageData = { value: TutorValue; } ]; + philanthropicSupport: string; }; // The Page data before DevStandardPair is translated to aboutBlurbs diff --git a/src/app/pages/subjects/new/import-philanthropic-support.js b/src/app/pages/subjects/new/import-philanthropic-support.js new file mode 100644 index 000000000..505239f27 --- /dev/null +++ b/src/app/pages/subjects/new/import-philanthropic-support.js @@ -0,0 +1,3 @@ +import PhilanthropicSupport from './philanthropic-support'; + +export default PhilanthropicSupport; diff --git a/src/app/pages/subjects/new/philanthropic-support.js b/src/app/pages/subjects/new/philanthropic-support.tsx similarity index 74% rename from src/app/pages/subjects/new/philanthropic-support.js rename to src/app/pages/subjects/new/philanthropic-support.tsx index a8a784908..978e2961a 100644 --- a/src/app/pages/subjects/new/philanthropic-support.js +++ b/src/app/pages/subjects/new/philanthropic-support.tsx @@ -10,7 +10,11 @@ export default function PhilanthropicSupport() {
- +
diff --git a/src/app/pages/subjects/new/specific/specific.tsx b/src/app/pages/subjects/new/specific/specific.tsx index 8208874ff..08215c702 100644 --- a/src/app/pages/subjects/new/specific/specific.tsx +++ b/src/app/pages/subjects/new/specific/specific.tsx @@ -21,7 +21,7 @@ import {useCanonicalLink} from '~/helpers/use-document-head'; import cn from 'classnames'; import './specific.scss'; -const importPhilanthropicSupport = () => import('../philanthropic-support.js'); +const importPhilanthropicSupport = () => import('../import-philanthropic-support.js'); const importLearnMore = () => import('./learn-more.js'); const importWebinars = () => import('./import-webinars.js'); const importBlogPosts = () => import('./blog-posts.js'); diff --git a/src/app/pages/subjects/new/subjects.tsx b/src/app/pages/subjects/new/subjects.tsx index 23bd054fe..0f1972a39 100644 --- a/src/app/pages/subjects/new/subjects.tsx +++ b/src/app/pages/subjects/new/subjects.tsx @@ -13,7 +13,7 @@ const importLanguageSelector = () => import('./language-selector-section.js'); const importSubjectsListing = () => import('./import-subjects-listing.js'); const importTutorAd = () => import('./import-tutor-ad.js'); const importInfoBoxes = () => import('./import-info-boxes.js'); -const importPhilanthropicSupport = () => import('./philanthropic-support.js'); +const importPhilanthropicSupport = () => import('./import-philanthropic-support.js'); function SEOSetup() { const {title, pageDescription} = assertDefined(useSubjectsContext());