mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Moved inline text to language file
This commit is contained in:
parent
3758a8036b
commit
050f547274
@ -292,6 +292,13 @@
|
||||
"withdraw_steem": "Withdraw Steem",
|
||||
"withdraw_sbd": "Withdraw Steem Dollar",
|
||||
"delegate": "Delegate",
|
||||
"power_down": "Power Down"
|
||||
"power_down": "Power Down",
|
||||
"account": "Account",
|
||||
"destination_accounts": "Destination Account(s)",
|
||||
"amount_information": "Drag the sliderto adjust to amount",
|
||||
"save": "Save",
|
||||
"percent": "Percentage",
|
||||
"percent_information": "Percentage of power down to this account",
|
||||
"auto_vests": "Automatically power up to the target account"
|
||||
}
|
||||
}
|
||||
|
@ -198,11 +198,11 @@ class PowerDownView extends Component {
|
||||
<ScrollView>
|
||||
<View style={styles.middleContent}>
|
||||
<TransferFormItem
|
||||
label={intl.formatMessage({ id: 'transfer.from' })}
|
||||
label={intl.formatMessage({ id: 'transfer.account' })}
|
||||
rightComponent={() => this._renderDropdown(accounts, currentAccountName)}
|
||||
/>
|
||||
<TransferFormItem
|
||||
label={intl.formatMessage({ id: 'transfer.from' })}
|
||||
label={intl.formatMessage({ id: 'transfer.destination_accounts' })}
|
||||
rightComponent={this._renderDestinationAccountItems}
|
||||
/>
|
||||
<TransferFormItem
|
||||
@ -221,7 +221,9 @@ class PowerDownView extends Component {
|
||||
this.setState({ amount: value });
|
||||
}}
|
||||
/>
|
||||
<Text style={styles.informationText}>Drag the sliderto adjust to amount</Text>
|
||||
<Text style={styles.informationText}>
|
||||
{intl.formatMessage({ id: 'transfer.amount_information' })}
|
||||
</Text>
|
||||
</View>
|
||||
<View style={styles.bottomContent}>
|
||||
<View style={styles.informationView}>
|
||||
|
@ -119,6 +119,7 @@ export default EStyleSheet.create({
|
||||
informationText: {
|
||||
alignSelf: 'center',
|
||||
color: '$iconColor',
|
||||
marginLeft: 5,
|
||||
},
|
||||
spInformation: {
|
||||
backgroundColor: 'red',
|
||||
|
@ -71,7 +71,7 @@ class WithdrawAccountModal extends Component {
|
||||
<View style={styles.modalContainer}>
|
||||
<UserAvatar username={account} size="xl" style={styles.avatar} noAction />
|
||||
<TransferFormItem
|
||||
label={intl.formatMessage({ id: 'transfer.to' })}
|
||||
label={intl.formatMessage({ id: 'transfer.account' })}
|
||||
rightComponent={() =>
|
||||
this._renderInput(
|
||||
intl.formatMessage({ id: 'transfer.to_placeholder' }),
|
||||
@ -81,7 +81,7 @@ class WithdrawAccountModal extends Component {
|
||||
}
|
||||
/>
|
||||
<TransferFormItem
|
||||
label={intl.formatMessage({ id: 'transfer.amount' })}
|
||||
label={intl.formatMessage({ id: 'transfer.percent' })}
|
||||
rightComponent={() => this._renderInformationText(`${percent.toFixed(0)} %`)}
|
||||
/>
|
||||
<View style={styles.informationView}>
|
||||
@ -98,11 +98,15 @@ class WithdrawAccountModal extends Component {
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
<Text style={styles.informationText}>Drag the sliderto adjust to amount</Text>
|
||||
<Text style={styles.informationText}>
|
||||
{intl.formatMessage({ id: 'transfer.percent_information' })}
|
||||
</Text>
|
||||
<TouchableOpacity onPress={() => this.setState({ autoPowerUp: !autoPowerUp })}>
|
||||
<View style={styles.checkView}>
|
||||
<CheckBox locked isChecked={autoPowerUp} />
|
||||
<Text style={styles.informationText}>Drag the sliderto adjust to amount</Text>
|
||||
<Text style={styles.informationText}>
|
||||
{intl.formatMessage({ id: 'transfer.auto_vests' })}
|
||||
</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
<MainButton
|
||||
@ -110,7 +114,7 @@ class WithdrawAccountModal extends Component {
|
||||
style={styles.button}
|
||||
onPress={() => handleOnSubmit(account, percent, autoPowerUp)}
|
||||
>
|
||||
<Text style={styles.buttonText}>{intl.formatMessage({ id: 'transfer.next' })}</Text>
|
||||
<Text style={styles.buttonText}>{intl.formatMessage({ id: 'transfer.save' })}</Text>
|
||||
</MainButton>
|
||||
</View>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user