UX: account deletion dialogue does not tell me which account I'm deleting (#835)
* fix: account deletion dialogue does not tell me which account I'm deleting * update styles and display namezio/stable
parent
1a12fa5775
commit
c20f8937cb
|
@ -16,6 +16,7 @@ import {useTheme} from 'lib/ThemeContext'
|
||||||
import {ErrorMessage} from '../util/error/ErrorMessage'
|
import {ErrorMessage} from '../util/error/ErrorMessage'
|
||||||
import {cleanError} from 'lib/strings/errors'
|
import {cleanError} from 'lib/strings/errors'
|
||||||
import {resetToTab} from '../../../Navigation'
|
import {resetToTab} from '../../../Navigation'
|
||||||
|
import {isDesktopWeb} from 'platform/detection'
|
||||||
|
|
||||||
export const snapPoints = ['60%']
|
export const snapPoints = ['60%']
|
||||||
|
|
||||||
|
@ -63,12 +64,31 @@ export function Component({}: {}) {
|
||||||
store.shell.closeModal()
|
store.shell.closeModal()
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<View
|
<View style={[styles.container, pal.view]}>
|
||||||
style={[styles.container, {backgroundColor: pal.colors.backgroundLight}]}>
|
|
||||||
<View style={[styles.innerContainer, pal.view]}>
|
<View style={[styles.innerContainer, pal.view]}>
|
||||||
<Text type="title-xl" style={[styles.title, pal.text]}>
|
<View style={[styles.titleContainer, pal.view]}>
|
||||||
Delete account
|
<Text type="title-xl" style={[s.textCenter, pal.text]}>
|
||||||
</Text>
|
Delete account
|
||||||
|
</Text>
|
||||||
|
<View style={[pal.view, s.flexRow]}>
|
||||||
|
<Text type="title-xl" style={[pal.text, s.bold]}>
|
||||||
|
{' "'}
|
||||||
|
</Text>
|
||||||
|
<Text
|
||||||
|
type="title-xl"
|
||||||
|
numberOfLines={1}
|
||||||
|
style={[
|
||||||
|
isDesktopWeb ? styles.titleDesktop : styles.titleMobile,
|
||||||
|
pal.text,
|
||||||
|
s.bold,
|
||||||
|
]}>
|
||||||
|
{store.me.handle}
|
||||||
|
</Text>
|
||||||
|
<Text type="title-xl" style={[pal.text, s.bold]}>
|
||||||
|
{'"'}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
{!isEmailSent ? (
|
{!isEmailSent ? (
|
||||||
<>
|
<>
|
||||||
<Text type="lg" style={[styles.description, pal.text]}>
|
<Text type="lg" style={[styles.description, pal.text]}>
|
||||||
|
@ -203,10 +223,25 @@ const styles = StyleSheet.create({
|
||||||
innerContainer: {
|
innerContainer: {
|
||||||
paddingBottom: 20,
|
paddingBottom: 20,
|
||||||
},
|
},
|
||||||
title: {
|
titleContainer: {
|
||||||
textAlign: 'center',
|
display: 'flex',
|
||||||
|
flexDirection: 'row',
|
||||||
|
justifyContent: 'center',
|
||||||
|
flexWrap: 'wrap',
|
||||||
marginTop: 12,
|
marginTop: 12,
|
||||||
marginBottom: 12,
|
marginBottom: 12,
|
||||||
|
marginLeft: 20,
|
||||||
|
marginRight: 20,
|
||||||
|
},
|
||||||
|
titleMobile: {
|
||||||
|
textAlign: 'center',
|
||||||
|
},
|
||||||
|
titleDesktop: {
|
||||||
|
textAlign: 'center',
|
||||||
|
overflow: 'hidden',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
textOverflow: 'ellipsis',
|
||||||
|
maxWidth: '400px',
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
|
Loading…
Reference in New Issue