referrals

This commit is contained in:
feruz 2019-12-16 09:37:49 +02:00
parent a51b169967
commit 4dc72396e2
3 changed files with 20 additions and 1 deletions

View File

@ -34,7 +34,12 @@ const PostBody = ({
}
try {
const data = JSON.parse(get(event, 'nativeEvent.data'));
let data = {};
try {
data = JSON.parse(get(event, 'nativeEvent.data'));
} catch (error) {
data = {};
}
const { type, href, author, category, permlink, tag, proposal, videoHref } = data;

View File

@ -28,6 +28,9 @@
"reblog_title": "Points for reblog",
"login_title": "Points for login",
"checkin_title": "Points for heartbeat",
"referral": "Referral",
"referral_title": "Referral rewards",
"referral_desc": "Invite friends and earn ESTM",
"checkin_extra_title": "Usage bonus",
"no_activity": "No recent activity",
"outgoing_transfer_description": "",

View File

@ -15,6 +15,14 @@ export default {
iconType: 'MaterialIcons',
point: 0.1,
},
160: {
icon: 'target',
textKey: 'referral_title',
nameKey: 'wallet.referral',
descriptionKey: 'wallet.referral_desc',
iconType: 'MaterialCommunityIcons',
point: 100,
},
150: {
icon: 'arrow-collapse-all',
textKey: 'delegation_title',
@ -82,6 +90,9 @@ export default {
};
export const POINTS_KEYS = [
{
type: 160,
},
{
type: 150,
},