Skip to content

Commit

Permalink
Merge pull request #1779 from kaloudis/seed-columns
Browse files Browse the repository at this point in the history
Back up wallet: order seed phrase in columns and center
  • Loading branch information
kaloudis authored Oct 20, 2023
2 parents b3b3e71 + 51a32ee commit e30204f
Showing 1 changed file with 29 additions and 21 deletions.
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

0 comments on commit e30204f

Please sign in to comment.