add delegations text

This commit is contained in:
feruz 2022-03-03 09:33:06 +02:00
parent 503e2a4146
commit 3151b6e12e
3 changed files with 5 additions and 3 deletions

View File

@ -29,7 +29,7 @@ const NotificationLineView = ({ notification, handleOnPressNotification, handleO
handleOnPressNotification(notification);
};
if (notification.type === 'transfer') {
if (notification.type === 'transfer' || notification.type === 'delegations') {
titleExtra = notification.amount;
} else if (notification.weight) {
const _percent = `${parseFloat((notification.weight / 100).toFixed(2))}% `;

View File

@ -118,6 +118,7 @@
"ignore": "ignored you",
"reblog": "reblogged",
"transfer": "transferred",
"delegations": "delegated",
"spin": "Time to earn more Points",
"inactive": "Be active! Write a post, continue earning",
"referral": "joined with your referral, welcome them",
@ -199,7 +200,8 @@
"comment": "Comment",
"mention": "Mention",
"reblog": "Reblog",
"transfers": "Transfers"
"transfers": "Transfers",
"delegations": "Delegations"
},
"pincode": "PIN code",
"reset_pin": "Reset Pin Code",

View File

@ -383,7 +383,7 @@ export const getLeaderboard = async (duration:'day'|'week'|'month') => {
* @returns array of notifications
*/
export const getNotifications = async (data:{
filter?: "rvotes"|"mentions"|"follows"|"replies"|"reblogs"|"transfers",
filter?: "rvotes"|"mentions"|"follows"|"replies"|"reblogs"|"transfers"|"delegations",
since?:string
}) => {
try{