push-protocol / push-dapp

The Push Protocol Dapp
https://app.push.org
Other
42 stars 36 forks source link

API Integration of Rewards Activities #1659

Closed abhishek-01k closed 1 week ago

abhishek-01k commented 2 weeks ago

Pull Request Template

1655

Description

Added Mobile Viewport support and also dark mode for the Rewards Activities page.

Type of Change

Checklist

Frontend Guidelines

Build & Testing

Screenshots/Video with Explanation

Additional Context

Review & Approvals

Notes

Things that are done:

Things that are not done:

github-actions[bot] commented 2 weeks ago

All looks good.

github-actions[bot] commented 2 weeks ago

PR Preview Action v1.4.7 :---: :rocket: Deployed preview to https://push-protocol.github.io/push-dapp/pr-preview/pr-1659/ on branch gh-pages at 2024-06-20 06:09 UTC

github-actions[bot] commented 2 weeks ago

There are a few things that need to be corrected or improved in the provided code snippets:

  1. In the package.json file:

    • The version of "react" and "react-dom" should be updated to the latest stable version.
    • There is a mix of single and double quotes for the dependencies versions, it would be better to stick to a consistent style, either single or double quotes.
  2. In the src/App.tsx file:

    • There is a commented out section of code that appears to be incomplete: // Provess App. It seems the comment should be 'Process App' and the rest of the code is missing.
    • The extendConsole function has a syntax error. Closing curly braces are missing for the console.enable function when enabled is false.
  3. In the src/blocks/illustrations/components/RewardsCircle.tsx file:

    • The RewardsCircle component is missing type definitions for props. It should include types for IlliustrationWrappper and IllustrationProps.
  4. In the src/modules/rewards/components/RewardsTabs.tsx file:

    • At the end of the file, there is an exported component line missing closing parenthesis. export { RewardsTabs }; should be export { RewardsTabs };.
  5. In general, it is recommended to further analyze the code for any vulnerabilities or performance improvements.

After addressing the above points, the code can be reviewed again for further improvements.

github-actions[bot] commented 1 week ago

In the package.json file, there are multiple packages with versions specified. Everything looks good.

In the App.tsx file:

In the RewardsCircle.tsx file:

In the UnlockProfileWrapper.tsx file:

Overall, some minor issues were found that need to be fixed. Once the fixes are applied, the code should be good to go.

github-actions[bot] commented 1 week ago

All looks good.

github-actions[bot] commented 1 week ago

All looks good.

rohitmalhotra1420 commented 1 week ago

We will give function review on deploy preview after raising the PR towards main from rewardsV1. So merging this here.

cc: @abhishek-01k @corlard3y