From 65101ad55a21692a4c2fe2418fbd6e254e026139 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 6 Aug 2025 16:42:45 +0200 Subject: [PATCH] UI/steps: make step footer next text customizable --- pkgs/clan-app/ui/src/workflows/Steps.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-app/ui/src/workflows/Steps.tsx b/pkgs/clan-app/ui/src/workflows/Steps.tsx index 9ee63db14..986d44485 100644 --- a/pkgs/clan-app/ui/src/workflows/Steps.tsx +++ b/pkgs/clan-app/ui/src/workflows/Steps.tsx @@ -57,12 +57,17 @@ export const BackButton = () => { * * Use this for overview steps where no form submission is required. */ -export const StepFooter = () => { +interface StepFooterProps { + nextText?: string; +} +export const StepFooter = (props: StepFooterProps) => { const stepper = useStepper(); return (
- stepper.next()} /> + stepper.next()}> + {props.nextText || undefined} +
); };