From b2ed657029be0e7f63e5ba531a28ddb3bfb06eba Mon Sep 17 00:00:00 2001 From: corlard3y Date: Mon, 14 Oct 2024 16:19:19 +0100 Subject: [PATCH] update rewards activities --- src/common/Common.baseLogos.ts | 3 ++ .../components/RewardsActivityIcon.tsx | 13 ++++++- .../components/RewardsActivityTitle.tsx | 23 +++++++++++- .../rewards/utils/activityTypeArray.ts | 1 + .../rewards/utils/getRewardsActivityTitle.ts | 35 ++++++++++++++----- src/queries/types/rewards.ts | 1 + 6 files changed, 65 insertions(+), 11 deletions(-) diff --git a/src/common/Common.baseLogos.ts b/src/common/Common.baseLogos.ts index 82e97f3813..8133bf9a69 100644 --- a/src/common/Common.baseLogos.ts +++ b/src/common/Common.baseLogos.ts @@ -9,3 +9,6 @@ export const walletTrackerLogo = export const shapeShiftLogo = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAA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32knJ1c+nSxWkk9rozVdHWWGmwaRaEMJSCEEC0LUM79V2zq2SBg2SGNYhujIPgUlLwDqG9SqjQTG9EUQndHHLZtU0nvn9ZFBuF/ATQIOV6PBedeAAAAAElFTkSuQmCC'; diff --git a/src/modules/rewards/components/RewardsActivityIcon.tsx b/src/modules/rewards/components/RewardsActivityIcon.tsx index d2841da81f..47961d5d41 100644 --- a/src/modules/rewards/components/RewardsActivityIcon.tsx +++ b/src/modules/rewards/components/RewardsActivityIcon.tsx @@ -29,7 +29,7 @@ import { YellowBonusActivitySubscribers, PushAlpha, } from 'blocks'; -import { quickSwapLogo, priceTrackerLogo, walletTrackerLogo, shapeShiftLogo } from 'common'; +import { quickSwapLogo, priceTrackerLogo, walletTrackerLogo, shapeShiftLogo, cyberLogo } from 'common'; import { ActvityType } from 'queries'; type RewardsActivityIconProp = { @@ -207,6 +207,17 @@ const RewardsActivityIcon: FC = ({ type }) => { ); } + if (type === 'channel_specific_subscriptions:CYBER_CHANNEL') { + return ( + + ); + } + if (type === 'stake_1_uni_v2_lp_epoch' || type === 'stake_1k_push_epoch') { return ( = ({ activityTitle, is const extractedTitle = getRewardsActivityTitle(activityTitle); if (extractedTitle) { - const { preText, url, linkedText, postText } = extractedTitle; + const { preText, url, linkedText, postText, secondLinkedText, secondUrl, innerText } = extractedTitle; return ( = ({ activityTitle, is {linkedText} + + {innerText} + + + + {secondLinkedText} + + { - const regex = /\[([^\]]+)\]\(([^)]+)\)/; - const match = activityTitle?.match(regex); - if (match) { - const preText = activityTitle.substring(0, match.index); - const linkedText = match[1]; - const url = match[2]; + if (!activityTitle) return null; // Ensure activityTitle is not null or undefined + + const regex = /\[([^\]]+)\]\(([^)]+)\)/g; + const matches = Array.from(activityTitle.matchAll(regex)); // Convert iterator to an array + + if (matches.length >= 1) { + const preText = activityTitle.substring(0, matches[0].index); + const linkedText = matches[0][1]; + const url = matches[0][2]; + + let innerText = ''; + let secondLinkedText = ''; + let secondUrl = ''; let postText = ''; - if (match.index) { - postText = activityTitle.substring(match.index + match[0].length); + + if (matches.length >= 2) { + innerText = activityTitle.substring(matches[0].index + matches[0][0].length, matches[1].index); + secondLinkedText = matches[1][1]; + secondUrl = matches[1][2]; + postText = activityTitle.substring(matches[1].index + matches[1][0].length); + } else { + postText = activityTitle.substring(matches[0].index + matches[0][0].length); } + return { preText, linkedText, url, - postText + innerText, + secondLinkedText, + secondUrl, + postText, }; } else { return null; diff --git a/src/queries/types/rewards.ts b/src/queries/types/rewards.ts index c12414f1b2..bb9ec7b4c4 100644 --- a/src/queries/types/rewards.ts +++ b/src/queries/types/rewards.ts @@ -35,6 +35,7 @@ export type ActvityType = | 'channel_specific_subscriptions:WALLETTRACKER_CHANNEL' | 'channel_specific_subscriptions:PRICETRACKER_CHANNEL' | 'channel_specific_subscriptions:SHAPESHIFT_CHANNEL' + | 'channel_specific_subscriptions:CYBER_CHANNEL' | 'stake_1k_push_epoch' | 'stake_5k_push_epoch' | 'stake_10k_push_epoch'