From 574dae4e77cd63043ce319238301bfee99ff1d4f Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 16 Oct 2023 17:36:50 +0200 Subject: [PATCH] feat(forderung): add templated subheading Co-Authored-By: Frederike Ramin <9320199+frederike-ramin@users.noreply.github.com> Co-Authored-By: SannyNguyenHung <91742583+SannyNguyenHung@users.noreply.github.com> --- app/routes/geld-einklagen.formular.$.tsx | 10 ++++++++++ app/routes/shared/step.tsx | 15 +++++++++++++++ app/services/cms/models/StrapiFormFlowPage.ts | 1 + 3 files changed, 26 insertions(+) diff --git a/app/routes/geld-einklagen.formular.$.tsx b/app/routes/geld-einklagen.formular.$.tsx index 978289ccd..34919619f 100644 --- a/app/routes/geld-einklagen.formular.$.tsx +++ b/app/routes/geld-einklagen.formular.$.tsx @@ -13,6 +13,7 @@ import { import { buildStepValidator } from "~/models/flows/common"; import { CSRFKey } from "~/services/security/csrfKey"; import Heading from "~/components/Heading"; +import { fillTemplate } from "~/util/fillTemplate"; export { action, loader } from "~/routes/shared/step"; export default function Step() { @@ -21,6 +22,7 @@ export default function Step() { defaultValues, commonContent, heading, + preHeading, content, formContent, isLast, @@ -43,6 +45,14 @@ export default function Step() {
+ {preHeading && ( +

+ {fillTemplate({ + template: preHeading, + replacements: templateReplacements, + })} +

+ )}