mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 11:21:41 +03:00
referrals
This commit is contained in:
parent
a51b169967
commit
4dc72396e2
@ -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;
|
||||
|
||||
|
@ -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": "",
|
||||
|
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user