Typo fix for transfer screen

This commit is contained in:
Mustafa Buyukcelebi 2019-05-07 23:04:43 +03:00
parent a12e8729e2
commit fec1463250
4 changed files with 10 additions and 3 deletions

View File

@ -77,4 +77,8 @@ export default EStyleSheet.create({
dropdownWrapper: {
flex: 1,
},
dropdownRowText: {
fontSize: 12.5,
color: '$primaryDarkGray',
},
});

View File

@ -85,6 +85,7 @@ const WalletLineItem = ({
options={dropdownOptions}
noHighlight
onSelect={onDropdownSelect}
rowTextStyle={styles.dropdownRowText}
/>
</View>
)}

View File

@ -172,6 +172,7 @@
},
"alert": {
"success": "Success!",
"successful": "Successful",
"allRead": "Marked all notifications as read",
"claim_reward_balance_ok": "Reward balance claimed",
"fail": "Fail!",

View File

@ -1,5 +1,6 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
// Services and Actions
import {
@ -68,7 +69,7 @@ class TransferContainer extends Component {
_transferToAccount = (from, destination, amount, memo) => {
const {
currentAccount, pinCode, navigation, dispatch,
currentAccount, pinCode, navigation, dispatch, intl,
} = this.props;
const transferType = navigation.getParam('transferType', '');
@ -109,7 +110,7 @@ class TransferContainer extends Component {
return func(currentAccount, pinCode, data)
.then(() => {
dispatch(toastNotification('Successfull'));
dispatch(toastNotification(intl.formatMessage({ id: 'alert.successful' })));
navigation.goBack();
})
.catch((err) => {
@ -154,4 +155,4 @@ const mapStateToProps = state => ({
pinCode: state.account.pin,
});
export default connect(mapStateToProps)(TransferContainer);
export default connect(mapStateToProps)(injectIntl(TransferContainer));