refactor(SW-302)

This commit is contained in:
Matilda Landström
2024-10-07 13:58:11 +02:00
parent cdb51bae73
commit 038fa81de2
2 changed files with 9 additions and 12 deletions

View File

@@ -47,13 +47,13 @@ export const activitiesCard = z.object({
}
}
return {
background_image: data.background_image,
body_text: data.body_text,
backgroundImage: data.background_image,
bodyText: data.body_text,
contentPage,
cta_text: data.cta_text,
ctaText: data.cta_text,
heading: data.heading,
open_in_new_tab: !!data.open_in_new_tab,
scripted_title: data.scripted_title,
openInNewTab: !!data.open_in_new_tab,
scriptedTopTitle: data.scripted_title,
}
}),
})