@@ -2,7 +2,7 @@ import { Dispatch, FC, SetStateAction, useEffect, useState } from 'react'
22import { toast } from 'react-toastify'
33import { KeyedMutator } from 'swr'
44
5- import { Button , Collapsible , FormToggleSwitch } from '~/libs/ui'
5+ import { Button , Collapsible , FormToggleSwitch , IconOutline , Tooltip } from '~/libs/ui'
66import { diceIdLogo , MFAImage , SettingSection } from '~/apps/accounts/src/lib'
77import { MemberMFAStatus , updateMemberMFAStatusAsync , useMemberMFAStatus , UserProfile } from '~/libs/core'
88
@@ -82,14 +82,25 @@ const Security: FC<SecurityProps> = (props: SecurityProps) => {
8282 title = 'DICE ID Authenticator App'
8383 infoText = 'DICE ID authentication application.'
8484 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 >
93104 ) }
94105 />
95106
0 commit comments