Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/components/Rewards/AppQuests/AppQuestCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,11 @@ const QuestItem: FC<QuestItemProps> = ({
: undefined
}
tooltipPosition="bottom-left"
width="fit-content"
maxWidth="220px"
css={css`
text-wrap: balance;
box-sizing: border-box;
width: max-content;
max-width: none;
white-space: nowrap;
`}
>
<Box
Expand Down
30 changes: 15 additions & 15 deletions src/components/Rewards/AppQuests/AppQuestSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { walletToFullCAIP10 } from '../../../helpers/web3helper';
import AppQuestCard from './AppQuestCard';
import { fadeInCss } from '../utils/FadeIn';
import { css } from 'styled-components';
import bridgeBg from '../../../../static/assets/website/rewards/bridgeapp-bg.webp';
import zappiBg from '../../../../static/assets/website/rewards/zappi-bg.webp';
import pusdBg from '../../../../static/assets/website/rewards/pusd-bg.webp';
import lastOneBg from '../../../../static/assets/website/rewards/last-one-bg.webp';
import { useCountdown } from '../hooks/useCountdown';

import { Box } from '../../../blocks';
Expand All @@ -29,20 +29,20 @@ const AppQuestSection = () => {
})

const { data: app1Quests } = useGetQuests({
appId: "push-chain-bridge"
appId: "pusd"
});

const { data: app2Quests } = useGetQuests({
appId: "zappi"
appId: "lastone"
});

const { data: app1QuestsProgress, refetch: refetchApp1QuestsProgress } = useGetQuestsProgress({
appId: "push-chain-bridge",
appId: "pusd",
userId: userDetails?.userId
});

const { data: app2QuestsProgress, refetch: refetchApp2QuestsProgress } = useGetQuestsProgress({
appId: "zappi",
appId: "lastone",
userId: userDetails?.userId
});

Expand Down Expand Up @@ -81,7 +81,7 @@ const AppQuestSection = () => {
refetchQuestActivities();
};

const targetDate = "2026-08-27T14:00:00Z";
const targetDate = "2026-09-10T14:00:00Z";
const { timeLeft } = useCountdown(targetDate);

const buildCompletedMap = (quests: QuestProgress[] | undefined) => {
Expand Down Expand Up @@ -109,9 +109,9 @@ const AppQuestSection = () => {
`}
>
<AppQuestCard
appName="Push Chain Bridge"
appUrl="bridge.push.org"
bgImage={bridgeBg}
appName="PUSD Stablecoin"
appUrl="pusd.push.org"
bgImage={pusdBg}
description=""
resetTime={timeLeft}
quests={enabledApp1Quests}
Expand All @@ -122,14 +122,14 @@ const AppQuestSection = () => {
completedMap={app1CompletedMap}
questProgressMap={questProgressMap}
setErrorMessage={setErrorMessage}
titleGradient="linear-gradient(180deg, #000000 16.15%, #730BE3 89.06%);"
linkColor="#551798"
titleGradient="linear-gradient(180deg, #000 16.15%, #A056E2 89.06%);"
linkColor="#4D2783"
/>

<AppQuestCard
appName="Zappi.to"
appUrl="zappi.to"
bgImage={zappiBg}
appName="Last One"
appUrl="lastone.fun"
bgImage={lastOneBg}
description=""
resetTime={timeLeft}
quests={enabledApp2Quests}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Rewards/BossQuests/BossQuestsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const BossQuestsSection = () => {
bossProgressMap[q.questId] = q?.progressPercentage ?? 0;
});

const targetDate = "2026-08-27T14:00:00Z";
const targetDate = "2026-09-10T14:00:00Z";
const { timeLeft } = useCountdown(targetDate);

const finishFiveQuestDescription = "Earn XP by completing 5 quests on a single app in a week";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Rewards/utils/activityTypeArray.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const OTHER_ACTIVITY_PREFIXES = ['bridge_', 'zappi_', 'moleswap_', 'boss_', 'bonus_'];
const OTHER_ACTIVITY_PREFIXES = ['pusd_', 'lastone_', 'moleswap_', 'boss_', 'bonus_'];

export const isOtherRewardActivity = (activityTypeId: string): boolean =>
OTHER_ACTIVITY_PREFIXES.some((prefix) => activityTypeId?.startsWith(prefix));
2 changes: 1 addition & 1 deletion src/components/Rewards/utils/skipVerificationActivities.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const SKIP_VERIFICATION_PREFIXES = ['bridge_', 'zappi_', 'moleswap_', 'boss_','bonus_non_cult_share_on_x_xp_boost'];
const SKIP_VERIFICATION_PREFIXES = ['pusd_', 'lastone_', 'moleswap_', 'boss_','bonus_non_cult_share_on_x_xp_boost'];

export const shouldSkipVerification = (activityTypeId: string): boolean =>
SKIP_VERIFICATION_PREFIXES.some((prefix) => activityTypeId?.startsWith(prefix));
4 changes: 2 additions & 2 deletions src/queries/types/rewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export type RewardsAcitivitesResponse = {
export type ActvityType =
| "follow_push_on_discord"
| "follow_push_on_twitter"
| `bridge_${string}`
| `zappi_${string}`
| `pusd_${string}`
| `lastone_${string}`
| `moleswap_${string}`
| `boss_${string}`
| `bonus_${string}`
Expand Down
Loading