) => {
+ if (option) {
+ setSelectedItem(option);
+ } else {
+ setSelectedItem(undefined);
}
};
//Change Step with State
- const wizardStep = (step) => {
- if (step == 1) {
+ const wizardStep = (step?: number) => {
+ if (!step || step === 1) {
return ;
- } else if (step == 2) {
- return ;
- } else if (step == 3) {
- return ;
+ } else if (step === 2) {
+ return ;
+ } else if (step === 3) {
+ return ;
} else {
- return ;
+ return ;
}
};
@@ -118,15 +129,15 @@ function SetupWizard(props) {
/>