diff --git a/src/components/basicUIElements/view/walletLineItem/walletLineItemView.js b/src/components/basicUIElements/view/walletLineItem/walletLineItemView.js index bb0039858..ee8c38368 100644 --- a/src/components/basicUIElements/view/walletLineItem/walletLineItemView.js +++ b/src/components/basicUIElements/view/walletLineItem/walletLineItemView.js @@ -44,7 +44,7 @@ const WalletLineItem = ({ )} - {text && ( + {!!text && ( { + const { dispatch } = this.props; + const { userPoints } = this.state; + + dispatch( + openPinCodeModal({ + navigateTo: ROUTES.SCREENS.TRANSFER, + navigateParams: { + transferType: 'points', + fundType: 'POINT', + balance: Math.round(get(userPoints, 'points') * 1000) / 1000, + }, + }), + ); + }; + _groomUserActivities = userActivities => userActivities.map(item => ({ ...item, - icon: POINTS[item.type].icon, - iconType: POINTS[item.type].iconType, - textKey: POINTS[item.type].textKey, + icon: get(POINTS[get(item, 'type')], 'icon'), + iconType: get(POINTS[get(item, 'type')], 'iconType'), + textKey: get(POINTS[get(item, 'type')], 'textKey'), })); _fetchuserPointActivities = async username => { @@ -137,6 +155,7 @@ class PointsContainer extends Component { refreshing={refreshing} userActivities={userActivities} userPoints={userPoints} + handleOnPressTransfer={this._handleOnPressTransfer} /> ); } diff --git a/src/components/points/view/pointsStyles.js b/src/components/points/view/pointsStyles.js index e8135b45a..c10a793c9 100644 --- a/src/components/points/view/pointsStyles.js +++ b/src/components/points/view/pointsStyles.js @@ -9,6 +9,29 @@ export default EStyleSheet.create({ alignSelf: 'center', fontWeight: 'bold', }, + pointsWrapper: { + flexDirection: 'row', + justifyContent: 'center', + alignSelf: 'center', + flex: 1, + }, + dropdownWrapper: { + flex: 1, + }, + dropdownRowText: { + fontSize: 14, + color: '$primaryDarkGray', + }, + dropdownStyle: { + minWidth: '$deviceWidth * 0.7', + }, + dropdownButtonStyle: { + justifyContent: 'center', + alignSelf: 'center', + position: 'absolute', + right: -40, + top: 20, + }, subText: { color: '$darkIconColor', fontSize: 8, diff --git a/src/components/points/view/pointsView.js b/src/components/points/view/pointsView.js index 181575294..fe2ac521a 100644 --- a/src/components/points/view/pointsView.js +++ b/src/components/points/view/pointsView.js @@ -1,15 +1,15 @@ -/* eslint-disable no-nested-ternary */ import React, { Component, Fragment } from 'react'; import { Text, View, FlatList, ScrollView, RefreshControl, TouchableOpacity } from 'react-native'; import { injectIntl } from 'react-intl'; import { Popover, PopoverController } from 'react-native-modal-popover'; -import { get, size } from 'lodash'; +import { get } from 'lodash'; // Components import { LineBreak, WalletLineItem, ListPlaceHolder } from '../../basicUIElements'; import { IconButton } from '../../iconButton'; import { Icon } from '../../icon'; import { MainButton } from '../../mainButton'; +import { DropdownButton } from '../../dropdownButton'; // Utils import { getTimeFromNow } from '../../../utils/time'; @@ -48,6 +48,19 @@ class PointsView extends Component { ); }; + _getTranslation = id => { + const { intl } = this.props; + let translation; + + try { + translation = intl.formatMessage({ id }); + } catch (error) { + translation = ''; + } + + return translation; + }; + _renderLoading = () => { const { isLoading, intl } = this.props; @@ -58,15 +71,33 @@ class PointsView extends Component { }; render() { - const { claimPoints, intl, isClaiming, userActivities, userPoints } = this.props; + const { + claimPoints, + isClaiming, + userActivities, + userPoints, + handleOnPressTransfer, + } = this.props; return ( - {userPoints.points} + + {get(userPoints, 'points')} + + eSteem Points - {userPoints.unclaimed_points > 0 && ( + {get(userPoints, 'unclaimed_points') > 0 && ( claimPoints()} > - {userPoints.unclaimed_points} + {get(userPoints, 'unclaimed_points')} @@ -89,7 +120,7 @@ class PointsView extends Component { data={POINTS_KEYS} horizontal renderItem={({ item }) => ( - + {({ openPopover, closePopover, @@ -97,15 +128,15 @@ class PointsView extends Component { setPopoverAnchor, popoverAnchorRect, }) => ( - + - {intl.formatMessage({ id: POINTS[item.type].nameKey })} + {this._getTranslation(get(POINTS[get(item, 'type')], 'nameKey'))} - {intl.formatMessage({ id: POINTS[item.type].descriptionKey })} + {this._getTranslation(get(POINTS[get(item, 'type')], 'descriptionKey'))} @@ -150,7 +181,7 @@ class PointsView extends Component { renderItem={({ item, index }) => ( diff --git a/src/config/locales/ac-ace.json b/src/config/locales/ac-ace.json index 08df8a2ce..c2fb6ed86 100644 --- a/src/config/locales/ac-ace.json +++ b/src/config/locales/ac-ace.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ar-SA.json b/src/config/locales/ar-SA.json index 7e69990b2..9cffd77e8 100644 --- a/src/config/locales/ar-SA.json +++ b/src/config/locales/ar-SA.json @@ -275,10 +275,10 @@ "memo_desc": "هذه المذكرة عامة", "to_placeholder": "إسم المستخدم", "memo_placeholder": "أدخل ملاحظاتك هنا", - "transferToken": "تحويل", - "transferToSaving": "النقل إلى المدخرات", + "transfer_token": "تحويل", + "transfer_to_saving": "النقل إلى المدخرات", "powerUp": "رفع الطاقة", - "withdrawToSaving": "سحب إلى الادخار", + "withdraw_to_saving": "سحب إلى الادخار", "steemconnect_title": "نقل Steemconnect", "next": "التالي" } diff --git a/src/config/locales/as-IN.json b/src/config/locales/as-IN.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/as-IN.json +++ b/src/config/locales/as-IN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/az-AZ.json b/src/config/locales/az-AZ.json index 97c5b71d8..3e1e5c783 100644 --- a/src/config/locales/az-AZ.json +++ b/src/config/locales/az-AZ.json @@ -275,10 +275,10 @@ "memo_desc": "Bu qeyd ictimaidir", "to_placeholder": "İstifadəçi adı", "memo_placeholder": "Qeydlərinizi buraya daxil edin", - "transferToken": "Köçürmə", - "transferToSaving": "Yığımlara Köçürmə", + "transfer_token": "Köçürmə", + "transfer_to_saving": "Yığımlara Köçürmə", "powerUp": "Gücü artır", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Köçürməsi", "next": "NEXT" } diff --git a/src/config/locales/bg-BG.json b/src/config/locales/bg-BG.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/bg-BG.json +++ b/src/config/locales/bg-BG.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/bn-BD.json b/src/config/locales/bn-BD.json index 1f70355ee..07c847626 100644 --- a/src/config/locales/bn-BD.json +++ b/src/config/locales/bn-BD.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/bo-BT.json b/src/config/locales/bo-BT.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/bo-BT.json +++ b/src/config/locales/bo-BT.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/bs-BA.json b/src/config/locales/bs-BA.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/bs-BA.json +++ b/src/config/locales/bs-BA.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ca-ES.json b/src/config/locales/ca-ES.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ca-ES.json +++ b/src/config/locales/ca-ES.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ceb-PH.json b/src/config/locales/ceb-PH.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ceb-PH.json +++ b/src/config/locales/ceb-PH.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/cs-CZ.json b/src/config/locales/cs-CZ.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/cs-CZ.json +++ b/src/config/locales/cs-CZ.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/da-DK.json b/src/config/locales/da-DK.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/da-DK.json +++ b/src/config/locales/da-DK.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/de-DE.json b/src/config/locales/de-DE.json index 93fbd2622..44487b9d5 100644 --- a/src/config/locales/de-DE.json +++ b/src/config/locales/de-DE.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/el-GR.json b/src/config/locales/el-GR.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/el-GR.json +++ b/src/config/locales/el-GR.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/en-US.json b/src/config/locales/en-US.json index 9d0561a5c..cd2fbc4fd 100644 --- a/src/config/locales/en-US.json +++ b/src/config/locales/en-US.json @@ -38,7 +38,12 @@ "vote": "Vote", "reblog": "Reblog", "login": "Login", + "incoming_transfer_title": "Incoming transfer", + "outgoing_transfer_title": "Outgoing transfer", "checkin_extra": "Bonus", + "delegation": "Delegation", + "delegation_title": "Delegation reward", + "delegation_desc": "You can earn 1 point per day for each 100sp delegation", "post_title": "Points for post", "comment_title": "Points for comment", "vote_title": "Points for vote", @@ -47,6 +52,8 @@ "checkin_title": "Points for usage", "checkin_extra_title": "Usage bonus", "no_activity": "No activity here!", + "outgoing_transfer_description": "", + "incoming_transfer_description": "", "post_desc": "You can earn point by posting regularly. Posting gives you 15 points.", "comment_desc": "Each comment you make helps you to grow your audience and make friendship but also earns you 5 points.", "checkin_desc": "Checking in on eSteem app gives you 0.25 points and helps you stay connected with your friends.", @@ -275,10 +282,11 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "points": "Points Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/eo-UY.json b/src/config/locales/eo-UY.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/eo-UY.json +++ b/src/config/locales/eo-UY.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/es-ES.json b/src/config/locales/es-ES.json index b68d000f3..eb8b8a4f7 100644 --- a/src/config/locales/es-ES.json +++ b/src/config/locales/es-ES.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/et-EE.json b/src/config/locales/et-EE.json index 40665ec00..34ed73b74 100644 --- a/src/config/locales/et-EE.json +++ b/src/config/locales/et-EE.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/fa-IR.json b/src/config/locales/fa-IR.json index 8dbc2c9a1..29d01d08e 100644 --- a/src/config/locales/fa-IR.json +++ b/src/config/locales/fa-IR.json @@ -275,10 +275,10 @@ "memo_desc": "این یادداشت عمومی است", "to_placeholder": "نام کاربری", "memo_placeholder": "یادداشت های خود را در اینجا وارد کنید", - "transferToken": "انتقال", - "transferToSaving": "انتقال به پس انداز", + "transfer_token": "انتقال", + "transfer_to_saving": "انتقال به پس انداز", "powerUp": "بالا بردن قدرت", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "انتقال Steemconnect", "next": "NEXT" } diff --git a/src/config/locales/fi-FI.json b/src/config/locales/fi-FI.json index a794f1680..18cb2b59a 100644 --- a/src/config/locales/fi-FI.json +++ b/src/config/locales/fi-FI.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/fil-PH.json b/src/config/locales/fil-PH.json index a88966b1b..d9ba372a1 100644 --- a/src/config/locales/fil-PH.json +++ b/src/config/locales/fil-PH.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/fr-FR.json b/src/config/locales/fr-FR.json index ed0a42446..c06f3cab1 100644 --- a/src/config/locales/fr-FR.json +++ b/src/config/locales/fr-FR.json @@ -275,10 +275,10 @@ "memo_desc": "Ce mémo est public", "to_placeholder": "Nom d'utilisateur", "memo_placeholder": "Entrez vos notes ici", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Transfert Steemconnect", "next": "NEXT" } diff --git a/src/config/locales/ga-IE.json b/src/config/locales/ga-IE.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ga-IE.json +++ b/src/config/locales/ga-IE.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/gl-ES.json b/src/config/locales/gl-ES.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/gl-ES.json +++ b/src/config/locales/gl-ES.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/got-DE.json b/src/config/locales/got-DE.json index 69d82537b..d0b07c5b6 100644 --- a/src/config/locales/got-DE.json +++ b/src/config/locales/got-DE.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Atgagganamo", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/he-IL.json b/src/config/locales/he-IL.json index 2484f50c5..a5ab917bf 100644 --- a/src/config/locales/he-IL.json +++ b/src/config/locales/he-IL.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/hi-IN.json b/src/config/locales/hi-IN.json index 5cfceb541..5985c1a17 100644 --- a/src/config/locales/hi-IN.json +++ b/src/config/locales/hi-IN.json @@ -275,10 +275,10 @@ "memo_desc": "यह ज्ञापन सार्वजनिक है", "to_placeholder": "प्रयोक्ता नाम", "memo_placeholder": "अपनी टिप्पणी यहाँ लिखें", - "transferToken": "स्थान्तरण", - "transferToSaving": "बचत खाते में स्थान्तरण करें", + "transfer_token": "स्थान्तरण", + "transfer_to_saving": "बचत खाते में स्थान्तरण करें", "powerUp": "स्टीम क्षमता बढ़ाएं", - "withdrawToSaving": "बचत खाते से निकालें", + "withdraw_to_saving": "बचत खाते से निकालें", "steemconnect_title": "स्टीमकनेक्ट स्थान्तरण", "next": "NEXT" } diff --git a/src/config/locales/hr-HR.json b/src/config/locales/hr-HR.json index 03facc48a..31ca0e576 100644 --- a/src/config/locales/hr-HR.json +++ b/src/config/locales/hr-HR.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/hu-HU.json b/src/config/locales/hu-HU.json index 8cc8b75c9..2c9241b7d 100644 --- a/src/config/locales/hu-HU.json +++ b/src/config/locales/hu-HU.json @@ -275,10 +275,10 @@ "memo_desc": "Ez az üzenet nyilvános", "to_placeholder": "Felhasználónév", "memo_placeholder": "Megjegyzés ide", - "transferToken": "Átutalás", - "transferToSaving": "Átutalás a megtakarításokhoz", + "transfer_token": "Átutalás", + "transfer_to_saving": "Átutalás a megtakarításokhoz", "powerUp": "Power Up", - "withdrawToSaving": "Átutalás A Megtakarításokhoz", + "withdraw_to_saving": "Átutalás A Megtakarításokhoz", "steemconnect_title": "Steemconnect átutalás", "next": "KÖVETKEZŐ" } diff --git a/src/config/locales/hy-AM.json b/src/config/locales/hy-AM.json index c166fd690..67c8df8e3 100644 --- a/src/config/locales/hy-AM.json +++ b/src/config/locales/hy-AM.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/id-ID.json b/src/config/locales/id-ID.json index e85bcfc64..94ad355b6 100644 --- a/src/config/locales/id-ID.json +++ b/src/config/locales/id-ID.json @@ -275,10 +275,10 @@ "memo_desc": "Memo ini bersifat publik", "to_placeholder": "Nama Pengguna", "memo_placeholder": "Masukan catatan anda disini", - "transferToken": "Transfer", - "transferToSaving": "Transfer untuk menyimpan", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer untuk menyimpan", "powerUp": "Power Up", - "withdrawToSaving": "Tarik untuk menyimpan", + "withdraw_to_saving": "Tarik untuk menyimpan", "steemconnect_title": "Steemconnect Transfer", "next": "LANJUT" } diff --git a/src/config/locales/is-IS.json b/src/config/locales/is-IS.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/is-IS.json +++ b/src/config/locales/is-IS.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/it-IT.json b/src/config/locales/it-IT.json index f18e510c4..49cdd0182 100644 --- a/src/config/locales/it-IT.json +++ b/src/config/locales/it-IT.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ja-JP.json b/src/config/locales/ja-JP.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ja-JP.json +++ b/src/config/locales/ja-JP.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ka-GE.json b/src/config/locales/ka-GE.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ka-GE.json +++ b/src/config/locales/ka-GE.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/kk-KZ.json b/src/config/locales/kk-KZ.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/kk-KZ.json +++ b/src/config/locales/kk-KZ.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ko-KR.json b/src/config/locales/ko-KR.json index eebc466ee..0e78189a0 100644 --- a/src/config/locales/ko-KR.json +++ b/src/config/locales/ko-KR.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ks-IN.json b/src/config/locales/ks-IN.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ks-IN.json +++ b/src/config/locales/ks-IN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ku-TR.json b/src/config/locales/ku-TR.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ku-TR.json +++ b/src/config/locales/ku-TR.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ky-KG.json b/src/config/locales/ky-KG.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ky-KG.json +++ b/src/config/locales/ky-KG.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/lt-LT.json b/src/config/locales/lt-LT.json index bb943488a..f9c9e746f 100644 --- a/src/config/locales/lt-LT.json +++ b/src/config/locales/lt-LT.json @@ -275,10 +275,10 @@ "memo_desc": "Ši atmintinė yra vieša", "to_placeholder": "Vartotojo vardas", "memo_placeholder": "Įveskite savo užrašus čia", - "transferToken": "Pervesti", - "transferToSaving": "Pervesti į Santaupas", + "transfer_token": "Pervesti", + "transfer_to_saving": "Pervesti į Santaupas", "powerUp": "Power Up", - "withdrawToSaving": "Atsiimti į Santaupas", + "withdraw_to_saving": "Atsiimti į Santaupas", "steemconnect_title": "Steemconnect Pervedimas", "next": "TOLIAU" } diff --git a/src/config/locales/lv-LV.json b/src/config/locales/lv-LV.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/lv-LV.json +++ b/src/config/locales/lv-LV.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/mk-MK.json b/src/config/locales/mk-MK.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/mk-MK.json +++ b/src/config/locales/mk-MK.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/mn-MN.json b/src/config/locales/mn-MN.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/mn-MN.json +++ b/src/config/locales/mn-MN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ms-MY.json b/src/config/locales/ms-MY.json index c85be63eb..1af98bad3 100644 --- a/src/config/locales/ms-MY.json +++ b/src/config/locales/ms-MY.json @@ -275,10 +275,10 @@ "memo_desc": "Memo ini adalah umum", "to_placeholder": "Nama Pengguna", "memo_placeholder": "Masukkan catatan anda di sini", - "transferToken": "Pindah", - "transferToSaving": "Pindah kepada simpanan", + "transfer_token": "Pindah", + "transfer_to_saving": "Pindah kepada simpanan", "powerUp": "Mengekuasai", - "withdrawToSaving": "Keluarkan kepada penyimpanan", + "withdraw_to_saving": "Keluarkan kepada penyimpanan", "steemconnect_title": "Steemconnect Transfer", "next": "SETERUSNYA" } diff --git a/src/config/locales/ne-NP.json b/src/config/locales/ne-NP.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/ne-NP.json +++ b/src/config/locales/ne-NP.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/nl-NL.json b/src/config/locales/nl-NL.json index 5b1e74c3c..edca3ea40 100644 --- a/src/config/locales/nl-NL.json +++ b/src/config/locales/nl-NL.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/no-NO.json b/src/config/locales/no-NO.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/no-NO.json +++ b/src/config/locales/no-NO.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/pa-IN.json b/src/config/locales/pa-IN.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/pa-IN.json +++ b/src/config/locales/pa-IN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/pcm-NG.json b/src/config/locales/pcm-NG.json index bca9d238a..9c069d21a 100644 --- a/src/config/locales/pcm-NG.json +++ b/src/config/locales/pcm-NG.json @@ -275,10 +275,10 @@ "memo_desc": "Na everybody go see this memo", "to_placeholder": "Guy-name", "memo_placeholder": "Write your note for here", - "transferToken": "Transfer", - "transferToSaving": "Transfer go Savings", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer go Savings", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw go savings", + "withdraw_to_saving": "Withdraw go savings", "steemconnect_title": "Transfer with steemconnect", "next": "NEXT" } diff --git a/src/config/locales/pl-PL.json b/src/config/locales/pl-PL.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/pl-PL.json +++ b/src/config/locales/pl-PL.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/pt-PT.json b/src/config/locales/pt-PT.json index f53054cb6..fba732da6 100644 --- a/src/config/locales/pt-PT.json +++ b/src/config/locales/pt-PT.json @@ -275,10 +275,10 @@ "memo_desc": "Este memo é público", "to_placeholder": "Utilizador", "memo_placeholder": "Insira aqui as suas notas", - "transferToken": "Transferir", - "transferToSaving": "Transferir para Poupanças", + "transfer_token": "Transferir", + "transfer_to_saving": "Transferir para Poupanças", "powerUp": "Carregar Poder", - "withdrawToSaving": "Levantar para Guradar", + "withdraw_to_saving": "Levantar para Guradar", "steemconnect_title": "Transferência por Steemconnect", "next": "SEGUINTE" } diff --git a/src/config/locales/ro-RO.json b/src/config/locales/ro-RO.json index 9e3b14155..308d009be 100644 --- a/src/config/locales/ro-RO.json +++ b/src/config/locales/ro-RO.json @@ -275,10 +275,10 @@ "memo_desc": "Această notă este publică", "to_placeholder": "Nume de utilizator", "memo_placeholder": "Introdu comentariul tău aici", - "transferToken": "Transferă", - "transferToSaving": "Tranferă la economii", + "transfer_token": "Transferă", + "transfer_to_saving": "Tranferă la economii", "powerUp": "Power Up", - "withdrawToSaving": "Retrage la economii", + "withdraw_to_saving": "Retrage la economii", "steemconnect_title": "Transfer Steemconnect", "next": "URMĂTORUL" } diff --git a/src/config/locales/ru-RU.json b/src/config/locales/ru-RU.json index bb891c1ea..ff0c64878 100644 --- a/src/config/locales/ru-RU.json +++ b/src/config/locales/ru-RU.json @@ -275,10 +275,10 @@ "memo_desc": "Эта заметка публична", "to_placeholder": "Пользователь", "memo_placeholder": "Введите свою заметку", - "transferToken": "Перевод", - "transferToSaving": "Отправить в сейф", + "transfer_token": "Перевод", + "transfer_to_saving": "Отправить в сейф", "powerUp": "Увеличение силы", - "withdrawToSaving": "Вывести в сейф", + "withdraw_to_saving": "Вывести в сейф", "steemconnect_title": "Перевод Steemconnect", "next": "ДАЛЕЕ" } diff --git a/src/config/locales/sa-IN.json b/src/config/locales/sa-IN.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/sa-IN.json +++ b/src/config/locales/sa-IN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/sk-SK.json b/src/config/locales/sk-SK.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/sk-SK.json +++ b/src/config/locales/sk-SK.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/sl-SI.json b/src/config/locales/sl-SI.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/sl-SI.json +++ b/src/config/locales/sl-SI.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/sq-AL.json b/src/config/locales/sq-AL.json index c166fd690..67c8df8e3 100644 --- a/src/config/locales/sq-AL.json +++ b/src/config/locales/sq-AL.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/sr-CS.json b/src/config/locales/sr-CS.json index 9c12bf079..21542d32c 100644 --- a/src/config/locales/sr-CS.json +++ b/src/config/locales/sr-CS.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/sv-SE.json b/src/config/locales/sv-SE.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/sv-SE.json +++ b/src/config/locales/sv-SE.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/sw-KE.json b/src/config/locales/sw-KE.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/sw-KE.json +++ b/src/config/locales/sw-KE.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ta-IN.json b/src/config/locales/ta-IN.json index 1fddc14f6..a2595b5e6 100644 --- a/src/config/locales/ta-IN.json +++ b/src/config/locales/ta-IN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/tg-TJ.json b/src/config/locales/tg-TJ.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/tg-TJ.json +++ b/src/config/locales/tg-TJ.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/th-TH.json b/src/config/locales/th-TH.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/th-TH.json +++ b/src/config/locales/th-TH.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/tk-TM.json b/src/config/locales/tk-TM.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/tk-TM.json +++ b/src/config/locales/tk-TM.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/tr-TR.json b/src/config/locales/tr-TR.json index c860ccf02..ac3885397 100644 --- a/src/config/locales/tr-TR.json +++ b/src/config/locales/tr-TR.json @@ -275,10 +275,10 @@ "memo_desc": "Bu not herkese açık", "to_placeholder": "Kullanıcı Adı", "memo_placeholder": "Notlarınızı buraya girin", - "transferToken": "Havale", - "transferToSaving": "Tasarrufa Aktar", + "transfer_token": "Havale", + "transfer_to_saving": "Tasarrufa Aktar", "powerUp": "Güç yükselt", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Aktarımı", "next": "NEXT" } diff --git a/src/config/locales/uk-UA.json b/src/config/locales/uk-UA.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/uk-UA.json +++ b/src/config/locales/uk-UA.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ur-IN.json b/src/config/locales/ur-IN.json index 43f22e37e..41fd5ca9d 100644 --- a/src/config/locales/ur-IN.json +++ b/src/config/locales/ur-IN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/ur-PK.json b/src/config/locales/ur-PK.json index 43f22e37e..41fd5ca9d 100644 --- a/src/config/locales/ur-PK.json +++ b/src/config/locales/ur-PK.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/uz-UZ.json b/src/config/locales/uz-UZ.json index 11b084f21..e5ab8bacf 100644 --- a/src/config/locales/uz-UZ.json +++ b/src/config/locales/uz-UZ.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/vi-VN.json b/src/config/locales/vi-VN.json index 7e9214a10..bbfcebf51 100644 --- a/src/config/locales/vi-VN.json +++ b/src/config/locales/vi-VN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/yo-NG.json b/src/config/locales/yo-NG.json index 7da7f8371..5b3c01c85 100644 --- a/src/config/locales/yo-NG.json +++ b/src/config/locales/yo-NG.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/zh-CN.json b/src/config/locales/zh-CN.json index 5a382c23a..167e5af01 100644 --- a/src/config/locales/zh-CN.json +++ b/src/config/locales/zh-CN.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/config/locales/zh-TW.json b/src/config/locales/zh-TW.json index 77cd3440b..63e7da2b2 100644 --- a/src/config/locales/zh-TW.json +++ b/src/config/locales/zh-TW.json @@ -275,10 +275,10 @@ "memo_desc": "This memo is public", "to_placeholder": "Username", "memo_placeholder": "Enter your notes here", - "transferToken": "Transfer", - "transferToSaving": "Transfer To Saving", + "transfer_token": "Transfer", + "transfer_to_saving": "Transfer To Saving", "powerUp": "Power Up", - "withdrawToSaving": "Withdraw To Saving", + "withdraw_to_saving": "Withdraw To Saving", "steemconnect_title": "Steemconnect Transfer", "next": "NEXT" } diff --git a/src/constants/options/points.js b/src/constants/options/points.js index 617d83a5c..a35a0eea7 100644 --- a/src/constants/options/points.js +++ b/src/constants/options/points.js @@ -1,4 +1,28 @@ export default { + 999: { + icon: 'compare-arrows', + textKey: 'points.incoming_transfer_title', + nameKey: 'points.incoming_transfer', + descriptionKey: 'points.incoming_transfer_description', + iconType: 'MaterialIcons', + point: 0.1, + }, + 998: { + icon: 'compare-arrows', + textKey: 'points.outgoing_transfer_title', + nameKey: 'points.outgoing_transfer', + descriptionKey: 'points.outgoing_transfer_description', + iconType: 'MaterialIcons', + point: 0.1, + }, + 150: { + icon: 'local-activity', + textKey: 'points.delegation_title', + nameKey: 'points.delegation', + descriptionKey: 'points.delegation_desc', + iconType: 'MaterialIcons', + point: 1, + }, 100: { icon: 'pencil', textKey: 'points.post_title', @@ -58,6 +82,9 @@ export default { }; export const POINTS_KEYS = [ + { + type: 150, + }, { type: 100, }, diff --git a/src/providers/esteem/ePoint.js b/src/providers/esteem/ePoint.js index 823e9e5b5..35d2a5009 100644 --- a/src/providers/esteem/ePoint.js +++ b/src/providers/esteem/ePoint.js @@ -1,6 +1,12 @@ import { Alert } from 'react-native'; +import { Client, PrivateKey } from 'dsteem'; import ePointApi from '../../config/ePoint'; +// Utils +import { decryptKey } from '../../utils/crypto'; + +// const client = new Client(getItem('server', 'https://api.steemit.com')); + export const userActivity = (us, ty, bl = '', tx = '') => new Promise(resolve => { const params = { us, ty }; diff --git a/src/providers/steem/dsteem.js b/src/providers/steem/dsteem.js index 1f6b82b19..77bc57fd2 100644 --- a/src/providers/steem/dsteem.js +++ b/src/providers/steem/dsteem.js @@ -1,10 +1,12 @@ import { Client, PrivateKey } from 'dsteem'; import steemConnect from 'steemconnect'; import Config from 'react-native-config'; +import get from 'lodash/get'; import { getServer } from '../../realm/realm'; import { getUnreadActivityCount } from '../esteem/esteem'; -import { userActivity } from '../esteem/ePoint'; +import { userActivity, transfer } from '../esteem/ePoint'; + // Utils import { decryptKey } from '../../utils/crypto'; import { parsePosts, parsePost, parseComments } from '../../utils/postParser'; @@ -530,7 +532,10 @@ export const transferToken = (currentAccount, pin, data) => { client.broadcast .transfer(args, privateKey) .then(result => { - resolve(result); + if (result) { + transfer(data.from, data.destination, data.ammount); + resolve(result); + } }) .catch(err => { reject(err); @@ -1009,6 +1014,34 @@ export const claimRewardBalance = (account, pinCode, rewardSteem, rewardSbd, rew return Promise.reject(new Error('You dont have permission!')); }; +export const transferPoint = (currentAccount, pinCode, data) => { + const pin = getDigitPinCode(pinCode); + const key = getActiveKey(currentAccount.local, pin); + const username = get(currentAccount, 'name'); + + const json = JSON.stringify({ + sender: get(data, 'from'), + receiver: get(data, 'destination'), + amount: get(data, 'amount'), + memo: get(data, 'memo'), + }); + + if (key) { + const privateKey = PrivateKey.fromString(key); + + const op = { + id: 'esteem_point_transfer', + json, + required_auths: [username], + required_posting_auths: [], + }; + + return client.broadcast.json(op, privateKey); + } + + return Promise.reject(new Error('Something went wrong!')); +}; + const getAnyPrivateKey = (local, pin) => { const { postingKey, activeKey } = local; @@ -1022,3 +1055,13 @@ const getAnyPrivateKey = (local, pin) => { return false; }; + +const getActiveKey = (local, pin) => { + const { activeKey } = local; + + if (activeKey) { + return decryptKey(local.activeKey, pin); + } + + return false; +}; diff --git a/src/screens/transfer/container/transferContainer.js b/src/screens/transfer/container/transferContainer.js index 4602119d5..4140a9ce5 100644 --- a/src/screens/transfer/container/transferContainer.js +++ b/src/screens/transfer/container/transferContainer.js @@ -10,6 +10,7 @@ import { transferToSavings, transferToVesting, getAccount, + transferPoint, } from '../../../providers/steem/dsteem'; import { toastNotification } from '../../../redux/actions/uiAction'; @@ -55,6 +56,9 @@ class TransferContainer extends Component { case 'SBD': balance = account[0].sbd_balance.replace(fundType, ''); break; + case 'POINT': + balance = navigation.getParam('balance', ''); + break; default: break; } @@ -89,19 +93,22 @@ class TransferContainer extends Component { data.amount = `${data.amount} ${fundType}`; switch (transferType) { - case 'transferToken': + case 'transfer_token': func = transferToken; break; - case 'transferToSaving': + case 'transfer_to_saving': func = transferToSavings; break; case 'powerUp': func = transferToVesting; break; - case 'withdrawToSaving': + case 'withdraw_to_saving': func = transferFromSavings; data.requestId = new Date().getTime() >>> 0; break; + case 'points': + func = transferPoint; + break; default: break; diff --git a/src/screens/transfer/screen/transferScreen.js b/src/screens/transfer/screen/transferScreen.js index 111472222..5eba1b30d 100644 --- a/src/screens/transfer/screen/transferScreen.js +++ b/src/screens/transfer/screen/transferScreen.js @@ -142,12 +142,27 @@ class TransferView extends Component { isTransfering, from, } = this.state; + let path; - const path = `sign/transfer?from=${ - accounts[0].username - }&to=${destination}&amount=${encodeURIComponent(`${amount} STEEM`)}&memo=${encodeURIComponent( - memo, - )}`; + if (transferType === 'points') { + const json = JSON.stringify({ + sender: accounts[0].username, + receiver: destination, + amount: `${Number(amount).toFixed(3)} ${fundType}`, + memo, + }); + path = `sign/custom-json?required_auths=%5B%22${ + accounts[0].username + }%22%5D&required_posting_auths=%5B%5D&id=esteem_point_transfer&json=${encodeURIComponent( + json, + )}`; + } else { + path = `sign/transfer?from=${ + accounts[0].username + }&to=${destination}&amount=${encodeURIComponent( + `${amount} ${fundType}`, + )}&memo=${encodeURIComponent(memo)}`; + } return ( diff --git a/src/utils/points.js b/src/utils/points.js new file mode 100644 index 000000000..e69de29bb