@@ -58,7 +58,7 @@ export default function Review ({ address, api, classToUnlock, setDisplayPopup,
58
58
const [ txInfo , setTxInfo ] = useState < TxInfo | undefined > ( ) ;
59
59
const [ estimatedFee , setEstimatedFee ] = useState < Balance > ( ) ;
60
60
const [ params , setParams ] = useState < SubmittableExtrinsic < 'promise' , ISubmittableResult > [ ] > ( ) ;
61
- const [ step , setStep ] = useState < number > ( STEPS . REVIEW ) ;
61
+ const [ step , setStep ] = useState < number > ( STEPS . INDEX ) ;
62
62
63
63
const selectedProxyAddress = selectedProxy ?. delegate as unknown as string ;
64
64
@@ -113,12 +113,13 @@ export default function Review ({ address, api, classToUnlock, setDisplayPopup,
113
113
setDisplayPopup ( undefined ) ;
114
114
} , [ setDisplayPopup ] ) ;
115
115
116
- const closeProxy = useCallback ( ( ) => setStep ( STEPS . REVIEW ) , [ ] ) ;
116
+ const closeProxy = useCallback ( ( ) => setStep ( STEPS . INDEX ) , [ ] ) ;
117
117
118
118
return (
119
119
< DraggableModal onClose = { onClose } open = { show } >
120
120
< Grid alignItems = 'center' container justifyContent = 'center' maxHeight = '650px' overflow = 'hidden' >
121
121
< ModalTitle
122
+ closeProxy = { closeProxy }
122
123
icon = { step === STEPS . PROXY ? faUserAstronaut : faLockOpen }
123
124
onCancel = { step === STEPS . PROXY ? closeProxy : onClose }
124
125
setStep = { setStep }
@@ -128,7 +129,7 @@ export default function Review ({ address, api, classToUnlock, setDisplayPopup,
128
129
{ isPasswordError &&
129
130
< WrongPasswordAlert />
130
131
}
131
- { [ STEPS . REVIEW , STEPS . SIGN_QR ] . includes ( step ) &&
132
+ { [ STEPS . INDEX , STEPS . REVIEW , STEPS . SIGN_QR ] . includes ( step ) &&
132
133
< >
133
134
< SubTitle label = { t ( 'Review' ) } style = { { paddingTop : isPasswordError ? '10px' : '25px' } } />
134
135
< Container disableGutters sx = { { px : '30px' } } >
0 commit comments