@@ -2,7 +2,7 @@ import { Dispatch, FC, SetStateAction, useEffect, useState } from 'react'
2
2
import { toast } from 'react-toastify'
3
3
import { KeyedMutator } from 'swr'
4
4
5
- import { Button , Collapsible , FormToggleSwitch } from '~/libs/ui'
5
+ import { Button , Collapsible , FormToggleSwitch , IconOutline , Tooltip } from '~/libs/ui'
6
6
import { diceIdLogo , MFAImage , SettingSection } from '~/apps/accounts/src/lib'
7
7
import { MemberMFAStatus , updateMemberMFAStatusAsync , useMemberMFAStatus , UserProfile } from '~/libs/core'
8
8
@@ -82,14 +82,25 @@ const Security: FC<SecurityProps> = (props: SecurityProps) => {
82
82
title = 'DICE ID Authenticator App'
83
83
infoText = 'DICE ID authentication application.'
84
84
actionElement = { (
85
- < Button
86
- label = 'Setup DICE ID Authentication'
87
- secondary
88
- size = 'lg'
89
- className = { styles . diceIdButton }
90
- onClick = { handleDiceModalStatus }
91
- disabled = { ! mfaEnabled || mfaStatusData ?. diceEnabled }
92
- />
85
+ < div className = { styles . diceBtnWrap } >
86
+ < Button
87
+ label = 'Setup DICE ID Authentication'
88
+ secondary
89
+ size = 'lg'
90
+ className = { styles . diceIdButton }
91
+ onClick = { handleDiceModalStatus }
92
+ disabled = { ! mfaEnabled || mfaStatusData ?. diceEnabled }
93
+ />
94
+ {
95
+ mfaStatusData ?. diceEnabled && (
96
+ < Tooltip
97
+ content = 'Please reach out to [email protected] for deactivating Dice ID.'
98
+ >
99
+ < IconOutline . InformationCircleIcon />
100
+ </ Tooltip >
101
+ )
102
+ }
103
+ </ div >
93
104
) }
94
105
/>
95
106
0 commit comments