@@ -17,7 +17,7 @@ import VerificationListener from './VerificationListener';
17
17
import './styles.scss' ;
18
18
19
19
export default function Security ( {
20
- usermfa, getUser2fa , updateUser2fa, updateUserDice, getNewDiceConnection,
20
+ usermfa, updateUser2fa, updateUserDice, getNewDiceConnection,
21
21
getDiceConnection, tokenV3, handle, emailAddress,
22
22
} ) {
23
23
const [ setupStep , setSetupStep ] = useState ( - 1 ) ;
@@ -123,11 +123,6 @@ export default function Security({
123
123
}
124
124
} ;
125
125
126
- const finishSetup = ( ) => {
127
- getUser2fa ( userId , tokenV3 ) ;
128
- closeSetup ( ) ;
129
- } ;
130
-
131
126
useInterval ( verifyConnection , setupStep === 1 && isConnVerifyRunning ? 5000 : null ) ;
132
127
133
128
const setupStepNodes = [
@@ -219,7 +214,7 @@ export default function Security({
219
214
leftButtonName = "Cancel"
220
215
leftButtonClick = { closeSetup }
221
216
rightButtonName = "Finish"
222
- rightButtonClick = { finishSetup }
217
+ rightButtonClick = { closeSetup }
223
218
>
224
219
< div styleName = "step-body" >
225
220
< div styleName = "step-title" >
@@ -245,7 +240,7 @@ export default function Security({
245
240
leftButtonName = "Cancel"
246
241
leftButtonClick = { closeSetup }
247
242
rightButtonName = "Finish"
248
- rightButtonClick = { finishSetup }
243
+ rightButtonClick = { closeSetup }
249
244
>
250
245
< div styleName = "step-body" >
251
246
< div styleName = "step-title-container" >
@@ -320,9 +315,12 @@ export default function Security({
320
315
< div styleName = "info-first-line" >
321
316
DICE ID Authenticator App
322
317
</ div >
323
- < div styleName = "info-second-line" >
318
+ < div styleName = "info-second-line dice-info " >
324
319
DICE ID authentication application
325
320
</ div >
321
+ < div styleName = "info-second-line dice-info-mobile" >
322
+ { diceChecked ? 'DICE ID Authenticator is enabled.' : 'Please set up DICE ID Authenticator from your desktop device' }
323
+ </ div >
326
324
</ div >
327
325
{ diceChecked
328
326
? (
@@ -359,7 +357,6 @@ export default function Security({
359
357
360
358
Security . propTypes = {
361
359
usermfa : PT . shape ( ) . isRequired ,
362
- getUser2fa : PT . func . isRequired ,
363
360
updateUser2fa : PT . func . isRequired ,
364
361
updateUserDice : PT . func . isRequired ,
365
362
getNewDiceConnection : PT . func . isRequired ,
0 commit comments