ui/stepper: forward props in backButton
This commit is contained in:
@@ -35,7 +35,8 @@ export const NextButton = (props: NextButtonProps) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const BackButton = () => {
|
type BackButtonProps = ButtonProps & {};
|
||||||
|
export const BackButton = (props: BackButtonProps) => {
|
||||||
const stepSignal = useStepper<InstallSteps>();
|
const stepSignal = useStepper<InstallSteps>();
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
@@ -45,6 +46,7 @@ export const BackButton = () => {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
stepSignal.previous();
|
stepSignal.previous();
|
||||||
}}
|
}}
|
||||||
|
{...props}
|
||||||
></Button>
|
></Button>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user