Skip to content

Commit

Permalink
feat: update sanity explainer data
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalisin committed Sep 17, 2024
1 parent 6c8beae commit ebd01d3
Show file tree
Hide file tree
Showing 6 changed files with 1,449 additions and 130 deletions.
4 changes: 3 additions & 1 deletion src/common-lib/cms-types/curriculumOverview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { portableTextSchema } from "./portableText";
export const curriculumOverviewCMSSchema = z
.object({
id: z.string().nullish(),
curriculumExplainerRaw: portableTextSchema.optional(),
curriculumExplainer: z.object({
explainerRaw: portableTextSchema.optional(),
}),
subjectPrinciples: z.string().array(),
partnerBio: z.string(),
curriculumPartner: z.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const OverviewTab: FC<OverviewTabProps> = (props: OverviewTabProps) => {
const { curriculumCMSInfo, curriculumInfo, curriculumSelectionSlugs } =
props.data;
const {
curriculumExplainerRaw,
curriculumExplainer,
subjectPrinciples,
partnerBio,
curriculumPartner,
Expand Down Expand Up @@ -136,7 +136,7 @@ const OverviewTab: FC<OverviewTabProps> = (props: OverviewTabProps) => {
</OakHeading>
<OakP>
<PortableText
value={curriculumExplainerRaw}
value={curriculumExplainer}
components={{
...basePortableTextComponents.list,
...basePortableTextComponents.listItem,
Expand Down
Loading

0 comments on commit ebd01d3

Please sign in to comment.