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 #1936

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Update Rewards Activities #1936

merged 1 commit into from
Oct 24, 2024

Conversation

corlard3y
Copy link
Collaborator

@corlard3y corlard3y commented Oct 24, 2024

Pull Request Template

#1935

Description

  • Problem/Feature:

Type of Change

  • Bug fix
  • New feature
  • Code refactor
  • Documentation update
  • Other (please describe):
    Add to rewards activities list

Checklist

  • Quick PR: Is this a quick PR? Can be approved before finishing a coffee.
    • Quick PR label added
  • Not Merge Ready: Is this PR dependent on some other PR/tasks and not ready to be merged right now.
    • DO NOT Merge PR label added

Frontend Guidelines

Build & Testing

  • No errors in the build terminal
  • Engineer has tested the changes on their local environment
  • Engineer has tested the changes on deploy preview

Screenshots/Video with Explanation

  • Before: Explain the previous behavior

  • After: What's changed now

Additional Context

Review & Approvals

  • Self-review completed
  • Code review by at least one other engineer
  • Documentation updates if applicable

Notes

@corlard3y corlard3y linked an issue Oct 24, 2024 that may be closed by this pull request
Copy link

In the RewardsActivityIcon.tsx file, there are multiple issues:

  1. Missing return keyword in if statements:

    if (type === 'follow_push_on_twitter') {
        return <Twitter />;
    }
    if (type === 'create_gated_group_push_chat') {
        return <GatedGroupPoints />;
    }
  2. Missing return keyword for other condition statements:

    if (type === 'channel_specific_subscriptions:WALLETTRACKER_CHANNEL') {
        return <img src={walletTrackerLogo} style={{ borderRadius: 'var(--radius-round)' }} />
    }
  3. Fix for multiple conditions missing return statements in the rest of the file.

Please ensure that all conditional statements within the RewardsActivityIcon component return JSX elements.

Known typo:
ActvityType in src/modules/rewards/utils/activityTypeArr.ts should be corrected to ActivityType.

All looks good.

Copy link

github-actions bot commented Oct 24, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-10-24 16:30 UTC

@HarshRajat HarshRajat merged commit 03f2bd5 into main Oct 24, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Rewards Activities
3 participants