@@ -4,12 +4,14 @@ import _ from 'lodash';
4
4
import { config } from 'topcoder-react-utils' ;
5
5
import QRCode from 'react-qr-code' ;
6
6
import { SettingBannerV2 as Collapse } from 'components/Settings/SettingsBanner' ;
7
+ import Tooltip from 'components/Tooltip' ;
7
8
import MfaImage from 'assets/images/account/security/mfa.svg' ;
8
9
import DiceLogo from 'assets/images/account/security/dicelogo.png' ;
9
10
import DiceLogoBig from 'assets/images/account/security/dicelogobig.png' ;
10
11
import GooglePlay from 'assets/images/account/security/google-play.png' ;
11
12
import AppleStore from 'assets/images/account/security/apple-store.svg' ;
12
13
import UnsuccessfulIcon from 'assets/images/account/security/unsuccessful.svg' ;
14
+ import TooltipInfo from 'assets/images/tooltip-info.svg' ;
13
15
import Modal from './Modal' ;
14
16
import VerificationListener from './VerificationListener' ;
15
17
@@ -25,6 +27,12 @@ export default function Security({
25
27
const [ connVerifyCounter , setConnVerifyCounter ] = useState ( 0 ) ;
26
28
const [ isVerificationProcessing , setIsVerificationProcessing ] = useState ( false ) ;
27
29
const diceVerifyUrl = config . DICE_VERIFY_URL ;
30
+
31
+ const diceTip = (
32
+ < div styleName = "tctooltiptext" >
33
+ < p > Please reach out to support@topcoder.com for deactivating Dice ID</ p >
34
+ </ div >
35
+ ) ;
28
36
const useInterval = ( callback , delay ) => {
29
37
const savedCallback = useRef ( ) ;
30
38
@@ -359,7 +367,7 @@ export default function Security({
359
367
</ div >
360
368
< div styleName = "info" >
361
369
< div styleName = "info-first-line" >
362
- DICE ID Authenticator App
370
+ < span > DICE ID Authenticator App</ span >
363
371
</ div >
364
372
< div styleName = "info-second-line dice-info" >
365
373
DICE ID authentication application
@@ -370,22 +378,31 @@ export default function Security({
370
378
</ div >
371
379
{ diceChecked
372
380
? (
373
- < div className = "onoffswitch" styleName = "dice-switch" >
374
- < input
375
- type = "checkbox"
376
- name = "pre-onoffswitch-dice"
377
- id = "pre-onoffswitch-dice"
378
- value = "diceEnabled"
379
- checked
380
- onChange = { ( ) => { } }
381
- className = "onoffswitch-checkbox"
382
- disabled
383
- />
384
- < label htmlFor = "pre-onoffswitch-dice" className = "onoffswitch-label" styleName = "disabled-toggle" >
385
- < span className = "onoffswitch-inner" />
386
- < span className = "onoffswitch-switch" />
387
- < input type = "hidden" />
388
- </ label >
381
+ < div styleName = "dice-switch" >
382
+ < div className = "onoffswitch" >
383
+ < input
384
+ type = "checkbox"
385
+ name = "pre-onoffswitch-dice"
386
+ id = "pre-onoffswitch-dice"
387
+ value = "diceEnabled"
388
+ checked
389
+ onChange = { ( ) => { } }
390
+ className = "onoffswitch-checkbox"
391
+ disabled
392
+ />
393
+ < label htmlFor = "pre-onoffswitch-dice" className = "onoffswitch-label" styleName = "disabled-toggle" >
394
+ < span className = "onoffswitch-inner" />
395
+ < span className = "onoffswitch-switch" />
396
+ < input type = "hidden" />
397
+ </ label >
398
+ </ div >
399
+ < Tooltip
400
+ id = "DICE-ID-Authenticator-App-tip"
401
+ content = { diceTip }
402
+ trigger = { [ 'hover' , 'focus' ] }
403
+ >
404
+ < TooltipInfo />
405
+ </ Tooltip >
389
406
</ div >
390
407
)
391
408
: (
0 commit comments