1- import { FC , useCallback , useEffect , useRef } from 'react' ;
1+ import { FC , useCallback , useEffect , useRef , useState } from 'react' ;
22import {
33 useApiResourceMutation ,
44 useRevalidateApiResource ,
@@ -22,9 +22,16 @@ import { useForm } from 'react-hook-form';
2222import { validationSchemaProjectWorkspace } from '../../lib/api/validations/schemas.ts' ;
2323import {
2424 CreateProjectWorkspaceDialog ,
25+ CreateProjectWorkspaceDialogContent ,
2526 OnCreatePayload ,
2627} from '../Dialogs/CreateProjectWorkspaceDialog.tsx' ;
27- import { Bar , Button , Dialog } from '@ui5/webcomponents-react' ;
28+ import {
29+ Bar ,
30+ Button ,
31+ Dialog ,
32+ Wizard ,
33+ WizardStep ,
34+ } from '@ui5/webcomponents-react' ;
2835import { KubectlInfoButton } from '../Dialogs/KubectlCommandInfo/KubectlInfoButton.tsx' ;
2936
3037export type CreateDialogProps = {
@@ -61,7 +68,7 @@ export const CreateManagedControlPlaneWizardContainer: FC<
6168 } ) ;
6269 const { t } = useTranslation ( ) ;
6370 const { user } = useAuth ( ) ;
64-
71+ const [ selectedStep , useSelectedStep ] = useState ( 1 ) ;
6572 const username = user ?. email ;
6673
6774 const clearForm = useCallback ( ( ) => {
@@ -108,6 +115,30 @@ export const CreateManagedControlPlaneWizardContainer: FC<
108115 />
109116 }
110117 onClose = { ( ) => setIsOpen ( false ) }
111- > </ Dialog >
118+ >
119+ < Wizard contentLayout = { 'SingleStep' } >
120+ < WizardStep
121+ icon = { 'create-form' }
122+ titleText = "Metadata"
123+ disabled = { false }
124+ selected = { selectedStep === 1 }
125+ data-step = { '1' }
126+ >
127+ < CreateProjectWorkspaceDialogContent
128+ members = { watch ( 'members' ) }
129+ register = { register }
130+ errors = { errors }
131+ setValue = { setValue }
132+ />
133+ </ WizardStep >
134+ < WizardStep
135+ icon = { 'activities' }
136+ titleText = "Summarize"
137+ disabled = { false }
138+ selected = { selectedStep === 2 }
139+ data-step = { '2' }
140+ > </ WizardStep >
141+ </ Wizard >
142+ </ Dialog >
112143 ) ;
113144} ;
0 commit comments