Skip to content

Commit 78331ae

Browse files
committed
fix onboarding spacing and flow
1 parent 27e33d7 commit 78331ae

File tree

1 file changed

+11
-25
lines changed

1 file changed

+11
-25
lines changed

components/RecoveryKeySaver.tsx

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,16 @@ const RecoveryKeySaver = () => {
122122
)
123123

124124
return (
125-
<Modal visible={open} transparent={true} animationType="fade" onRequestClose={onAbandon}>
125+
<Modal visible={!open} transparent={true} animationType="fade" onRequestClose={onAbandon}>
126126
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
127127
<View style={[styles.modalContainer, { backgroundColor: 'rgba(0,0,0,0.5)' }]}>
128128
<KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : 'height'} style={styles.keyboardAvoid}>
129129
<View style={[styles.modalContent, { backgroundColor: colors.background }]}>
130-
<Text style={[styles.title, { color: colors.textPrimary }]}>Secure Access Backup and Recovery</Text>
130+
<Text style={[styles.title, { color: colors.textPrimary }]}>Save Your Recovery Key Now</Text>
131131

132132
<ScrollView style={styles.scrollView}>
133133
{!affirmative1 && (
134134
<View>
135-
<Text style={[styles.subtitle, { color: colors.textPrimary }]}>Save Your Recovery Key Now:</Text>
136-
137135
<View
138136
style={[
139137
styles.keyContainer,
@@ -156,7 +154,7 @@ const RecoveryKeySaver = () => {
156154
color={colors.buttonText}
157155
style={styles.buttonIcon}
158156
/>
159-
<Text style={[styles.buttonText, { color: colors.buttonText }]}>Copy to Clipboard</Text>
157+
<Text style={[styles.buttonText, { color: colors.buttonText }]}>Copy</Text>
160158
</TouchableOpacity>
161159

162160
<TouchableOpacity
@@ -179,29 +177,19 @@ const RecoveryKeySaver = () => {
179177
<Checkbox
180178
checked={affirmative1}
181179
onPress={() => setAffirmative1(!affirmative1)}
182-
label="I have saved my recovery key in a secure location"
180+
label="I have saved my recovery key"
183181
/>
184182
</View>
185183

186184
{affirmative1 && (
187185
<View>
188186
<Text style={[styles.subtitle, { color: colors.textPrimary }]}>
189-
Any 2 of 3 factors are required to access your data:
190-
</Text>
191-
192-
<Text style={[styles.centeredText, { color: colors.textPrimary, fontWeight: 'bold' }]}>
193-
Phone, Password, Recovery Key
194-
</Text>
195-
196-
<Text style={[styles.description, { color: colors.textSecondary, marginTop: 16 }]}>
197-
When you lose your phone or forget your password, you must use the other factors to re-establish
198-
secure control. This is a perfectly normal and unavoidable fact of life. However -
187+
Any 2 of 3 factors are required to access your data: Phone, Password, Recovery Key
199188
</Text>
200189

201190
<View style={[styles.warningBox, { borderColor: colors.error }]}>
202191
<Text style={[styles.warningText, { color: colors.error }]}>
203-
Loss of more than one factor will result in TOTAL LOSS of access to all assets, encrypted data,
204-
and certificates.
192+
Loss of two factors = PERMANENT TOTAL LOSS of all assets, and data.
205193
</Text>
206194
</View>
207195

@@ -231,15 +219,15 @@ const RecoveryKeySaver = () => {
231219
style={[
232220
styles.buttonPrimary,
233221
{
234-
backgroundColor: isAllChecked ? '#006600' : colors.inputBorder,
235-
opacity: isAllChecked ? 1 : 0.5
222+
backgroundColor: colors.buttonBackground,
223+
opacity: isAllChecked ? 1 : 0.2
236224
}
237225
]}
238226
onPress={onKeySaved}
239227
disabled={!isAllChecked}
240228
>
241229
<Text style={[styles.buttonText, { color: colors.buttonText }]}>Securely Saved</Text>
242-
<Ionicons name="lock-closed" size={20} color={colors.buttonText} style={styles.buttonIcon} />
230+
<Ionicons name={isAllChecked ? "lock-closed" : "lock-open"} size={20} color={colors.buttonText} style={styles.buttonIcon} />
243231
</TouchableOpacity>
244232
</View>
245233
</View>
@@ -257,7 +245,6 @@ const styles = StyleSheet.create({
257245
alignItems: 'center'
258246
},
259247
keyboardAvoid: {
260-
width: '90%',
261248
maxWidth: 500
262249
},
263250
modalContent: {
@@ -271,7 +258,6 @@ const styles = StyleSheet.create({
271258
shadowOpacity: 0.25,
272259
shadowRadius: 3.84,
273260
elevation: 5,
274-
maxHeight: '80%'
275261
},
276262
scrollView: {
277263
maxHeight: 450,
@@ -319,7 +305,7 @@ const styles = StyleSheet.create({
319305
flex: 0.48
320306
},
321307
buttonIcon: {
322-
marginRight: 8
308+
marginLeft: 8
323309
},
324310
warningBox: {
325311
borderWidth: 1,
@@ -379,7 +365,7 @@ const styles = StyleSheet.create({
379365
},
380366
buttonText: {
381367
fontSize: 16,
382-
fontWeight: '500'
368+
fontWeight: '500',
383369
},
384370
buttonSecondaryText: {
385371
fontSize: 16

0 commit comments

Comments
 (0)