File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 MigrationErrorType ,
66 MigrationProgressProps ,
77 MigrationStateInfo ,
8- MigrationStep
8+ MigrationStep ,
99} from "../lib/client.ts" ;
1010
1111/**
@@ -80,27 +80,28 @@ export default function MigrationProgress(props: MigrationProgressProps) {
8080 return true ;
8181 } ;
8282
83- const client = new MigrationClient (
83+ const client = new MigrationClient (
8484 {
8585 updateStepStatus,
86- if ( stepNum === 2 ) {
87- // Update step name to prompt for token
88- setSteps ( ( prevSteps ) =>
89- prevSteps . map ( ( step , i ) =>
90- i === 2
91- ? {
92- ...step ,
93- name :
94- "Enter the token sent to your email to complete identity migration" ,
95- }
96- : step
97- )
98- ) ;
99- }
86+ nextStepHook ( stepNum ) {
87+ if ( stepNum === 2 ) {
88+ // Update step name to prompt for token
89+ setSteps ( ( prevSteps ) =>
90+ prevSteps . map ( ( step , i ) =>
91+ i === 2
92+ ? {
93+ ...step ,
94+ name :
95+ "Enter the token sent to your email to complete identity migration" ,
96+ }
97+ : step
98+ )
99+ ) ;
100+ }
101+ } ,
102+ setRetryAttempts,
103+ setShowContinueAnyway,
100104 } ,
101- setRetryAttempts ,
102- setShowContinueAnyway ,
103- }
104105 ) ;
105106
106107 const continueAnyway = ( stepNum : number ) => {
You can’t perform that action at this time.
0 commit comments