@@ -23,7 +23,7 @@ const styles = StyleSheet.create({
23
23
info : {
24
24
fontSize : 16 ,
25
25
lineHeight : 24 ,
26
- marginVertical : 4 ,
26
+ marginTop : 24 ,
27
27
...sharedStyles . textRegular
28
28
}
29
29
} ) ;
@@ -66,7 +66,9 @@ const E2EEnterYourPasswordView = (): React.ReactElement => {
66
66
67
67
useLayoutEffect ( ( ) => {
68
68
navigation . setOptions ( {
69
- headerLeft : ( ) => < HeaderButton . CloseModal testID = 'e2e-enter-your-password-view-close' /> ,
69
+ headerLeft : ( ) => (
70
+ < HeaderButton . CloseModal accessibilityLabel = { I18n . t ( 'Close' ) } testID = 'e2e-enter-your-password-view-close' />
71
+ ) ,
70
72
title : I18n . t ( 'Enter_E2EE_Password' )
71
73
} ) ;
72
74
} , [ navigation ] ) ;
@@ -82,18 +84,28 @@ const E2EEnterYourPasswordView = (): React.ReactElement => {
82
84
contentContainerStyle = { sharedStyles . container }
83
85
keyboardVerticalOffset = { 128 } >
84
86
< StatusBar />
85
- < ScrollView { ...scrollPersistTaps } style = { sharedStyles . container } contentContainerStyle = { sharedStyles . containerScrollView } >
87
+ < ScrollView
88
+ { ...scrollPersistTaps }
89
+ style = { sharedStyles . container }
90
+ contentContainerStyle = { { ...sharedStyles . containerScrollView , paddingTop : 24 } } >
86
91
< SafeAreaView style = { { backgroundColor : colors . surfaceRoom } } testID = 'e2e-enter-your-password-view' >
87
92
< FormTextInput
88
- placeholder = { I18n . t ( 'Password' ) }
93
+ label = { I18n . t ( 'Password' ) }
89
94
returnKeyType = 'send'
90
95
secureTextEntry
91
96
onSubmitEditing = { submit }
92
97
onChangeText = { setPassword }
93
98
testID = 'e2e-enter-your-password-view-password'
94
99
textContentType = 'password'
100
+ containerStyle = { { marginBottom : 0 } }
101
+ />
102
+ < Button
103
+ onPress = { submit }
104
+ title = { I18n . t ( 'Confirm' ) }
105
+ disabled = { ! password }
106
+ testID = 'e2e-enter-your-password-view-confirm'
107
+ style = { { marginTop : 36 } }
95
108
/>
96
- < Button onPress = { submit } title = { I18n . t ( 'Confirm' ) } disabled = { ! password } testID = 'e2e-enter-your-password-view-confirm' />
97
109
< Text style = { [ styles . info , { color : colors . fontDefault } ] } > { I18n . t ( 'Enter_E2EE_Password_description' ) } </ Text >
98
110
</ SafeAreaView >
99
111
</ ScrollView >
0 commit comments