update for transfer feature

This commit is contained in:
Mustafa Buyukcelebi 2019-04-25 14:12:53 +03:00
parent 0967e6bf85
commit 8dc279088b
3 changed files with 16 additions and 13 deletions

View File

@ -26,19 +26,12 @@ class WalletContainer extends PureComponent {
// Component Life Cycle Functions
// Component Functions
_navigate = (a,b) => {
_navigate = (transferType, fundType) => {
const { dispatch, setPinCodeState } = this.props;
// navigation.navigate(ROUTES.SCREENS.TRANSFER, {
// transferType: 'withdrawToSaving',
// fundType: 'STEEM',
// });
console.log('a,b :', a,b);
setPinCodeState({
navigateTo: ROUTES.SCREENS.TRANSFER,
navigateParams: { transferType: 'transferToken', fundType: 'STEEM' },
navigateParams: { transferType, fundType },
});
dispatch(openPinCodeModal());
};

View File

@ -30,6 +30,10 @@ class WalletDetailsView extends PureComponent {
render() {
const { walletData, intl, navigate } = this.props;
const steemDropdown = ['transferToken', 'transferToSaving', 'powerUp'];
const sbdDropdown = ['transferToken', 'transferToSaving'];
return (
<View style={styles.container}>
<WalletLineItem
@ -39,8 +43,8 @@ class WalletDetailsView extends PureComponent {
rightText={`${Math.round(walletData.balance * 1000) / 1000} STEEM`}
isBoldText
dropdown
dropdownOptions={['Transfer']}
onDropdownSelect={(a,b) => navigate(a,b)}
dropdownOptions={steemDropdown.map(item => intl.formatMessage({ id: `transfer.${item}` }))}
onDropdownSelect={index => navigate(steemDropdown[index], 'STEEM')}
/>
<GrayWrapper isGray>
<WalletLineItem
@ -90,6 +94,9 @@ class WalletDetailsView extends PureComponent {
iconName="ios-information-circle-outline"
rightText={`$${Math.round(walletData.sbdBalance * 1000) / 1000}`}
isBoldText
dropdown
dropdownOptions={sbdDropdown.map(item => intl.formatMessage({ id: `transfer.${item}` }))}
onDropdownSelect={a => navigate(steemDropdown[a], 'SBD')}
/>
<GrayWrapper isGray>
<WalletLineItem

View File

@ -256,9 +256,12 @@
"amount": "Amount",
"memo": "Memo",
"information": "1",
"amount_desc": "2",
"amount_desc": "amount desc",
"memo_desc": "This memo is public",
"to_placeholder": "3",
"memo_placeholder": "4"
"memo_placeholder": "4",
"transferToken": "Transfer",
"transferToSaving": "Transfer To Saving",
"powerUp": "Power Up"
}
}