Makes WizardForm translation agnostic (#6111)

This commit is contained in:
Omar López authored and GitHub committed 2022-12-19 11:30:54 -07:00
1 parent 533e208643
commit f254711d85
3 files changed
+24 -24

No files matched your search

+8 -1
View File
@@ -35,7 +35,14 @@ export default function Setup(props: inferSSRProps<typeof getServerSideProps>) {
return (
<>
<main className="flex items-center bg-gray-100 print:h-full">
<WizardForm href="/auth/setup" steps={steps} />
<WizardForm
href="/auth/setup"
steps={steps}
nextLabel={t("next_step_text")}
finishLabel={t("finish")}
prevLabel={t("prev_step")}
stepLabel={(currentStep, maxSteps) => t("current_step_of_total", { currentStep, maxSteps })}
/>
</main>
</>
);