Skip to content

Commit

Permalink
Hotfix btn positions & en expression
Browse files Browse the repository at this point in the history
  • Loading branch information
donguks committed Apr 21, 2021
1 parent 721e26a commit 3a607fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
"check_seed_notice": "This is the step to check the seed phrases you have stored. Please enter it correctly.",
"seed_check_btn": "Confirmed",
"insert_seed": "Please enter the seed phrase.",
"insert_seed_btn": "Input complete",
"insert_seed_btn": "Recover",
"wallet_select": "Do you have any existing wallets?",
"wallet_select_content": "You can create a new wallet or use an existing wallet.",
"existing_wallet": "Using existing wallet",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/dashboard/components/SliderWithdrwal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { useState, FunctionComponent, useContext } from 'react';
import { useTranslation } from 'react-i18next';
import { View, Image, TouchableOpacity } from 'react-native';
import styled from 'styled-components/native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import UserContext from '../../../contexts/UserContext';
import LegacyRefundStatus from '../../../enums/LegacyRefundStatus';
import { SubmitButton } from '../../../shared/components/SubmitButton';
Expand Down Expand Up @@ -34,6 +35,7 @@ const SliderWithdrawal: FunctionComponent<Props> = (props) => {
});
const [focusing, setFocusing] = useState(false);
const { t } = useTranslation();
const insets = useSafeAreaInsets();

const refundLegacyWallet = () => {
Server.setRefundLegacyWallet(state.inputWallet, state.inputEmail)
Expand Down Expand Up @@ -189,7 +191,7 @@ const SliderWithdrawal: FunctionComponent<Props> = (props) => {
style={{
position: 'absolute',
bottom: 0,
marginBottom: 10,
marginBottom: insets.bottom || 10,
width: '100%',
marginLeft: 'auto',
marginRight: 'auto',
Expand Down
4 changes: 3 additions & 1 deletion src/modules/wallet/RecoverSeedPharase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { FunctionComponent, useState } from 'react';
import { View } from 'react-native';
import { TitleText } from '../../shared/components/Texts';
import Layout from './components/Layout';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import NextButton from '../../shared/components/NextButton';
import RecoverMnemonicView from './components/RecoverMnemonicView';
import { isValidMnemonic } from '@ethersproject/hdnode';
Expand All @@ -17,6 +18,7 @@ type State = {
const RecoverSeedPharase: FunctionComponent = () => {
const navigation = useNavigation();
const { t } = useTranslation();
const insets = useSafeAreaInsets();
const [state, setState] = useState<State>({
currentIndex: 0,
mnemonic: ['', '', '', '', '', '', '', '', '', '', '', ''],
Expand All @@ -39,7 +41,7 @@ const RecoverSeedPharase: FunctionComponent = () => {
setState({ ...state, mnemonic })
}}
/>
<View style={{ position: 'absolute', bottom: 10, width: '100%' }}>
<View style={{ position: 'absolute', bottom: insets.bottom || 10, width: '100%' }}>
<NextButton
title={t('recovery_key.insert_seed_btn')}
disabled={!isValidMnemonic(state.mnemonic.join(' '))}
Expand Down

0 comments on commit 3a607fd

Please sign in to comment.