mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 03:42:10 +03:00
Removed memo input from powerup screen, added default value for destination input #1255
This commit is contained in:
parent
9bfc5d9d87
commit
908294a471
@ -31,10 +31,10 @@ class TransferView extends Component {
|
||||
super(props);
|
||||
this.state = {
|
||||
from: props.currentAccountName,
|
||||
destination: '',
|
||||
destination: props.transferType === 'powerUp' ? props.currentAccountName : '',
|
||||
amount: '',
|
||||
memo: '',
|
||||
isUsernameValid: false,
|
||||
isUsernameValid: props.transferType === 'powerUp' && props.currentAccountName ? true : false,
|
||||
steemConnectTransfer: false,
|
||||
isTransfering: false,
|
||||
};
|
||||
@ -217,22 +217,26 @@ class TransferView extends Component {
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
/>
|
||||
<TransferFormItem
|
||||
label={intl.formatMessage({ id: 'transfer.memo' })}
|
||||
rightComponent={() =>
|
||||
this._renderInput(
|
||||
intl.formatMessage({ id: 'transfer.memo_placeholder' }),
|
||||
'memo',
|
||||
'default',
|
||||
true,
|
||||
)
|
||||
}
|
||||
/>
|
||||
<TransferFormItem
|
||||
rightComponent={() =>
|
||||
this._renderDescription(intl.formatMessage({ id: 'transfer.memo_desc' }))
|
||||
}
|
||||
/>
|
||||
{transferType !== 'powerUp' && (
|
||||
<TransferFormItem
|
||||
label={intl.formatMessage({ id: 'transfer.memo' })}
|
||||
rightComponent={() =>
|
||||
this._renderInput({
|
||||
placeholder: intl.formatMessage({ id: 'transfer.memo_placeholder' }),
|
||||
state: 'memo',
|
||||
keyboardType: 'default',
|
||||
isTextArea: true,
|
||||
})
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{transferType !== 'powerUp' && (
|
||||
<TransferFormItem
|
||||
rightComponent={() =>
|
||||
this._renderDescription(intl.formatMessage({ id: 'transfer.memo_desc' }))
|
||||
}
|
||||
/>
|
||||
)}
|
||||
</View>
|
||||
<View style={styles.bottomContent}>
|
||||
<MainButton
|
||||
|
Loading…
Reference in New Issue
Block a user