-
Notifications
You must be signed in to change notification settings - Fork 39
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
DApp-1881 tags added rewards activity #1894
DApp-1881 tags added rewards activity #1894
Conversation
All looks good. |
|
display="flex" | ||
gap="spacing-xxs" | ||
> | ||
{!!activity.expiryType && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{!!activity.expiryType && ( | |
{!!activity?.expiryType && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mishramonalisha76 expiryType will be always available for every activity.
In RewardsActivitiesListItem.tsx:
In rewards.ts:
Corrected code: RewardsActivitiesListItem.tsx: padding={{ ml: 'spacing-xs', pl: 'spacing-sm spacing-xxs', initial: 'spacing-sm' }}
<Lozenge size="small" icon={<Star />}>{tag}</Lozenge>
variant="bs-regular"
if (activity.activityType === 'follow_push_on_discord' || activity.activityType === 'follow_push_on_twitter')
export type RewardActivitiesListItemProps
rewards.ts:
type Prop = {
export type UsersAllActivitiesResponse = {
activities: UsersActivity[];
total: number;
page: number;
size: number;
};
export type UsersActivity = {
activityId: string;
userId: string;
activityTypeId: string;
data: { twitter?: string; discord?: string };
status: 'COMPLETED' | 'PENDING' | 'REJECTED';
verificationProof: string;
createdAt: string; // ISO 8601 date string
updatedAt: string; // ISO 8601 date string
};
export type RewardActivityStatusProps = {
activities: UsersActivity[];
};
Prop = { All looks good. |
Pull Request Template
Ticket Number
Description
Problem/Feature:
Added support for tags in the Reward Activities component.
Type of Change
Checklist
Frontend Guidelines
Build & Testing
Screenshots/Video with Explanation
Before: Explain the previous behavior
After: What's changed now
Additional Context
Review & Approvals
Notes