UI/steps: make step footer next text customizable
This commit is contained in:
@@ -57,12 +57,17 @@ export const BackButton = () => {
|
|||||||
*
|
*
|
||||||
* Use this for overview steps where no form submission is required.
|
* 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<InstallSteps>();
|
const stepper = useStepper<InstallSteps>();
|
||||||
return (
|
return (
|
||||||
<div class="flex justify-between py-4">
|
<div class="flex justify-between py-4">
|
||||||
<BackButton />
|
<BackButton />
|
||||||
<NextButton type="button" onClick={() => stepper.next()} />
|
<NextButton type="button" onClick={() => stepper.next()}>
|
||||||
|
{props.nextText || undefined}
|
||||||
|
</NextButton>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user