rm link
This commit is contained in:
@@ -19,11 +19,8 @@ import {isAndroid, isWeb} from '#/platform/detection'
|
|||||||
import {useModalControls} from '#/state/modals'
|
import {useModalControls} from '#/state/modals'
|
||||||
import {DM_SERVICE_HEADERS} from '#/state/queries/messages/const'
|
import {DM_SERVICE_HEADERS} from '#/state/queries/messages/const'
|
||||||
import {useAgent, useSession, useSessionApi} from '#/state/session'
|
import {useAgent, useSession, useSessionApi} from '#/state/session'
|
||||||
import {DeactivateAccountDialog} from '#/screens/Settings/components/DeactivateAccountDialog'
|
|
||||||
import {atoms as a, useTheme as useNewTheme} from '#/alf'
|
import {atoms as a, useTheme as useNewTheme} from '#/alf'
|
||||||
import {useDialogControl} from '#/components/Dialog'
|
|
||||||
import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo'
|
import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo'
|
||||||
import {InlineLinkText} from '#/components/Link'
|
|
||||||
import {Text as NewText} from '#/components/Typography'
|
import {Text as NewText} from '#/components/Typography'
|
||||||
import {resetToTab} from '../../../Navigation'
|
import {resetToTab} from '../../../Navigation'
|
||||||
import {ErrorMessage} from '../util/error/ErrorMessage'
|
import {ErrorMessage} from '../util/error/ErrorMessage'
|
||||||
@@ -48,7 +45,6 @@ export function Component({}: {}) {
|
|||||||
const [password, setPassword] = React.useState<string>('')
|
const [password, setPassword] = React.useState<string>('')
|
||||||
const [isProcessing, setIsProcessing] = React.useState<boolean>(false)
|
const [isProcessing, setIsProcessing] = React.useState<boolean>(false)
|
||||||
const [error, setError] = React.useState<string>('')
|
const [error, setError] = React.useState<string>('')
|
||||||
const deactivateAccountControl = useDialogControl()
|
|
||||||
const onPressSendEmail = async () => {
|
const onPressSendEmail = async () => {
|
||||||
setError('')
|
setError('')
|
||||||
setIsProcessing(true)
|
setIsProcessing(true)
|
||||||
@@ -202,24 +198,10 @@ export function Component({}: {}) {
|
|||||||
<Trans>
|
<Trans>
|
||||||
You can also temporarily deactivate your account instead,
|
You can also temporarily deactivate your account instead,
|
||||||
and reactivate it at any time.
|
and reactivate it at any time.
|
||||||
</Trans>{' '}
|
</Trans>
|
||||||
<InlineLinkText
|
|
||||||
label={_(
|
|
||||||
msg`Click here for more information on deactivating your account`,
|
|
||||||
)}
|
|
||||||
to="#"
|
|
||||||
onPress={e => {
|
|
||||||
e.preventDefault()
|
|
||||||
deactivateAccountControl.open()
|
|
||||||
return false
|
|
||||||
}}>
|
|
||||||
<Trans>Click here for more information.</Trans>
|
|
||||||
</InlineLinkText>
|
|
||||||
</NewText>
|
</NewText>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<DeactivateAccountDialog control={deactivateAccountControl} />
|
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user