Skip to content

Commit

Permalink
Remove deactivate dialog link from delete modal (#7167)
Browse files Browse the repository at this point in the history
* Rm closeModal

* rm link
  • Loading branch information
estrattonbailey authored Dec 18, 2024
1 parent 64dbaed commit 3408d47
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/view/com/modals/DeleteAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ import {isAndroid, isWeb} from '#/platform/detection'
import {useModalControls} from '#/state/modals'
import {DM_SERVICE_HEADERS} from '#/state/queries/messages/const'
import {useAgent, useSession, useSessionApi} from '#/state/session'
import {DeactivateAccountDialog} from '#/screens/Settings/components/DeactivateAccountDialog'
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 {InlineLinkText} from '#/components/Link'
import {Text as NewText} from '#/components/Typography'
import {resetToTab} from '../../../Navigation'
import {ErrorMessage} from '../util/error/ErrorMessage'
Expand All @@ -48,7 +45,6 @@ export function Component({}: {}) {
const [password, setPassword] = React.useState<string>('')
const [isProcessing, setIsProcessing] = React.useState<boolean>(false)
const [error, setError] = React.useState<string>('')
const deactivateAccountControl = useDialogControl()
const onPressSendEmail = async () => {
setError('')
setIsProcessing(true)
Expand Down Expand Up @@ -202,25 +198,10 @@ export function Component({}: {}) {
<Trans>
You can also temporarily deactivate your account instead,
and reactivate it at any time.
</Trans>{' '}
<InlineLinkText
label={_(
msg`Click here for more information on deactivating your account`,
)}
to="#"
onPress={e => {
e.preventDefault()
closeModal()
deactivateAccountControl.open()
return false
}}>
<Trans>Click here for more information.</Trans>
</InlineLinkText>
</Trans>
</NewText>
</View>
</View>

<DeactivateAccountDialog control={deactivateAccountControl} />
</>
) : (
<>
Expand Down

0 comments on commit 3408d47

Please sign in to comment.