Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back up wallet: order seed phrase in columns and center #1779

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 29 additions & 21 deletions views/Settings/Seed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,19 @@ const MnemonicWord = ({ index, word }) => {
flexDirection: 'row'
}}
>
<Text
style={{
flex: 1,
fontFamily: 'Lato-Regular',
color: themeColor('secondaryText'),
fontSize: 18,
alignSelf: 'flex-start'
}}
>
{index + 1}
</Text>
<View style={{ width: 35 }}>
<Text
style={{
flex: 1,
fontFamily: 'Lato-Regular',
color: themeColor('secondaryText'),
fontSize: 18,
alignSelf: 'flex-start'
}}
>
{index + 1}
</Text>
</View>
<Text
style={{
flex: 1,
Expand All @@ -72,7 +74,7 @@ const MnemonicWord = ({ index, word }) => {
padding: 0
}}
>
{isRevealed ? word : '*******'}
{isRevealed ? word : '********'}
</Text>
</TouchableOpacity>
);
Expand Down Expand Up @@ -251,7 +253,7 @@ export default class Seed extends React.PureComponent<SeedProps, SeedState> {
alignSelf: 'center',
position: 'absolute',
bottom: 35,
width: '90%'
width: '100%'
}}
>
<Button
Expand All @@ -264,16 +266,21 @@ export default class Seed extends React.PureComponent<SeedProps, SeedState> {
</>
)}
{understood && (
<>
<ScrollView style={{ flex: 1, marginBottom: 80 }}>
<View style={{ flex: 1, justifyContent: 'center' }}>
<ScrollView
contentContainerStyle={{
flexGrow: 1,
justifyContent: 'center'
}}
>
<View
style={{
flex: 1,
marginTop: 8,
maxHeight: 720,
maxHeight: 620,
flexWrap: 'wrap',
alignItems: 'flex-start',
flexDirection: 'row'
alignSelf: 'center',
flexDirection: 'column'
}}
>
{seedPhrase &&
Expand All @@ -293,9 +300,10 @@ export default class Seed extends React.PureComponent<SeedProps, SeedState> {
<View
style={{
alignSelf: 'center',
position: 'absolute',
marginTop: 45,
bottom: 35,
width: '90%'
width: '100%',
backgroundColor: themeColor('background')
}}
>
<Button
Expand All @@ -311,7 +319,7 @@ export default class Seed extends React.PureComponent<SeedProps, SeedState> {
)}
/>
</View>
</>
</View>
)}
</Screen>
);
Expand Down