Skip to content

Commit 9f4aa4c

Browse files
committed
refactor(ui): inline ConfigureSSO wizard steps into parent component
Removes the ConfigureSSOSteps wrapper and renders the Wizard.Step children directly inside the Wizard. Also sets the initial step to `configure` so the wizard opens on the configuration step.
1 parent 7f84287 commit 9f4aa4c

1 file changed

Lines changed: 30 additions & 38 deletions

File tree

packages/ui/src/components/ConfigureSSO/ConfigureSSO.tsx

Lines changed: 30 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -69,50 +69,42 @@ const ConfigureSSOCardContent = () => {
6969

7070
return (
7171
<ConfigureSSOFlowProvider enterpriseConnection={enterpriseConnection}>
72-
<Wizard>
72+
<Wizard initialStepId='configure'>
7373
<ConfigureSSOHeader />
7474

75-
<ConfigureSSOSteps />
76-
</Wizard>
77-
</ConfigureSSOFlowProvider>
78-
);
79-
};
80-
81-
const ConfigureSSOSteps = () => {
82-
return (
83-
<>
84-
<Wizard.Step id='select-provider'>
85-
<SelectProviderStep />
86-
</Wizard.Step>
75+
<Wizard.Step id='select-provider'>
76+
<SelectProviderStep />
77+
</Wizard.Step>
8778

88-
<Wizard.Step
89-
id='verify-domain'
90-
label='Verify domain'
91-
>
92-
<VerifyDomainStep />
93-
</Wizard.Step>
79+
<Wizard.Step
80+
id='verify-domain'
81+
label='Verify domain'
82+
>
83+
<VerifyDomainStep />
84+
</Wizard.Step>
9485

95-
<Wizard.Step
96-
id='configure'
97-
label='Configure'
98-
>
99-
<ConfigureStep />
100-
</Wizard.Step>
86+
<Wizard.Step
87+
id='configure'
88+
label='Configure'
89+
>
90+
<ConfigureStep />
91+
</Wizard.Step>
10192

102-
<Wizard.Step
103-
id='test'
104-
label='Test'
105-
>
106-
<TestConfigurationStep />
107-
</Wizard.Step>
93+
<Wizard.Step
94+
id='test'
95+
label='Test'
96+
>
97+
<TestConfigurationStep />
98+
</Wizard.Step>
10899

109-
<Wizard.Step
110-
id='confirmation'
111-
label='Confirmation'
112-
>
113-
<ConfirmationStep />
114-
</Wizard.Step>
115-
</>
100+
<Wizard.Step
101+
id='confirmation'
102+
label='Confirmation'
103+
>
104+
<ConfirmationStep />
105+
</Wizard.Step>
106+
</Wizard>
107+
</ConfigureSSOFlowProvider>
116108
);
117109
};
118110

0 commit comments

Comments
 (0)