Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rewards activities list #1955

Merged
merged 1 commit into from
Nov 5, 2024
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
66 changes: 66 additions & 0 deletions src/blocks/illustrations/components/FiveSubscribedDefiChannel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import { FC } from 'react';
import { IllustrationWrapper } from '../IllustrationWrapper';
import { IllustrationProps } from '../Illustrations.types';

const FiveSubscribedDefiChannel: FC<IllustrationProps> = (allProps) => {
const { svgProps: props, ...restProps } = allProps;
return (
<IllustrationWrapper
componentName="FiveSubscribedDefiChannel"
illustration={
<svg
xmlns="http://www.w3.org/2000/svg"
width={restProps?.width ?? '24'}
height={restProps?.height ?? '24'}
viewBox="0 0 48 48"
fill="none"
{...props}
>
<circle
cx="24"
cy="24"
r="24"
fill="url(#paint0_linear_8581_29900)"
/>
<rect
x="10.6841"
y="10.7335"
width="27.4217"
height="27.4217"
rx="6"
fill="white"
/>
<path
d="M19.5503 16.4209H29.5466V18.8542H22.3891L22.0603 22.6467H22.2795C22.7508 22.1973 23.7044 21.5725 25.2937 21.5725C28.1764 21.5725 30.4125 23.4358 30.4125 26.8118C30.4125 30.2097 28.2861 32.4676 24.4498 32.4676C20.6025 32.4676 18.498 30.2097 18.3774 27.7544V27.4256H21.4574C21.4794 28.8286 22.4878 30.1 24.3401 30.1C26.2035 30.1 27.2777 28.7957 27.2777 26.9543C27.2777 25.1896 26.1816 23.94 24.4388 23.94C23.0248 23.94 22.148 24.6854 21.6986 25.6609H18.8049L19.5503 16.4209Z"
fill="black"
/>
<circle
cx="36.287"
cy="12.8317"
r="4.51849"
fill="#FF6978"
/>
<defs>
<linearGradient
id="paint0_linear_8581_29900"
x1="26.1045"
y1="48"
x2="25.7854"
y2="-3.041e-06"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#EE8BFD" />
<stop
offset="1"
stop-color="#795CFA"
/>
</linearGradient>
</defs>
</svg>
}
{...restProps}
/>
);
};

export default FiveSubscribedDefiChannel;
2 changes: 2 additions & 0 deletions src/blocks/illustrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export { default as EarnOnPush } from './components/EarnOnPush';

export { default as Ethereum } from './components/Ethereum';

export { default as FiveSubscribedDefiChannel } from './components/FiveSubscribedDefiChannel';

export { default as GatedGroupPoints } from './components/GatedGroupPoints';

export { default as GradientBonusActivitySubscribers } from './components/GradientBonusActivitySubscribers';
Expand Down
10 changes: 10 additions & 0 deletions src/modules/rewards/components/RewardsActivityIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
YellowBonusActivitySubscribers,
PushAlpha,
CyberLogoRewards,
FiveSubscribedDefiChannel,
} from 'blocks';
import {
quickSwapLogo,
Expand Down Expand Up @@ -258,6 +259,15 @@ const RewardsActivityIcon: FC<RewardsActivityIconProp> = ({ type }) => {
);
}

if (type === 'atleast_5_defi_channel_specific_subscriptions') {
return (
<FiveSubscribedDefiChannel
width={48}
height={48}
/>
);
}

if (type === 'stake_1_uni_v2_lp_epoch' || type === 'stake_1k_push_epoch') {
return (
<StakePushGreyCoin
Expand Down
1 change: 1 addition & 0 deletions src/modules/rewards/utils/activityTypeArray.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ActvityType } from 'queries';

export const otherRewardActivities: ActvityType[] = [
'atleast_5_defi_channel_specific_subscriptions',
'create_gated_group_push_chat',
'subscribe_5_channels_push',
'subscribe_20_channels_push',
Expand Down
1 change: 1 addition & 0 deletions src/queries/types/rewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export type ActvityType =
| 'channel_specific_subscriptions:REVOKE_NOTIFICATIONS_CHANNEL'
| 'channel_specific_subscriptions:PWN_NOTIFICATIONS_CHANNEL'
| 'channel_specific_subscriptions:UNSTOPPABLE_DOMAINS_CHANNEL'
| 'atleast_5_defi_channel_specific_subscriptions'
| 'stake_1k_push_epoch'
| 'stake_5k_push_epoch'
| 'stake_10k_push_epoch'
Expand Down
Loading