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

DApp-1784 fixed the prod dapp option visibility in header #1789

Merged

Conversation

rohitmalhotra1420
Copy link
Collaborator

@rohitmalhotra1420 rohitmalhotra1420 commented Aug 1, 2024

Pull Request Template

Ticket Number

Description

  • Problem/Feature:

  • Fixed the Production dapp option visibility in prod mode in the header

Type of Change

  • Bug fix
  • New feature
  • Code refactor
  • Documentation update
  • Other (please describe):

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

@rohitmalhotra1420 rohitmalhotra1420 added bug Something isn't working Quick PR A PR that can be approved before finishing a coffee labels Aug 1, 2024
@rohitmalhotra1420 rohitmalhotra1420 self-assigned this Aug 1, 2024
Copy link

github-actions bot commented Aug 1, 2024

  • There is a typo in the imports section. 'Internal Compoonents' should be 'Internal Components'.
  • In the import statement for 'Dropdown' component, the path seems incorrect. It should be '../components/Dropdown' instead of '../components/Dropdown'.
  • 'getPublicAssetPath' function is being used without being imported or defined in the file. It should be imported from the correct file or defined within the same file.
  • There is a commented block of code inside the component that is not being used. It should be either removed or uncommented if needed.
  • In the conditional rendering of the Wallet component, the comparison operator in the condition account && account != '' should be corrected to account && account !== ''.
  • In the styled component 'Wallet', the property border-radius is being applied twice. It should be removed from the @media (max-width: 992px) block.
  • In the styled component 'DropdownItem', the property background is using an undefined value props.theme.header.bg and props.theme.snackbarBorderColor. Ensure that these values are correctly defined in the theme or provide fallback values.
  • The inline styles in the 'ToggleArrowImg' styled component do not adhere to the styled-components syntax. You should refactor them to fit the styled-components standards.
  • In the 'getPublicAssetPath' calls, double check the paths and make sure they are pointing to the correct locations.

After addressing these issues, please re-run the code review.

Copy link

github-actions bot commented Aug 1, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-08-01 13:42 UTC

Copy link
Collaborator

@corlard3y corlard3y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-08-01 at 12 13 56

The options still shows up on PROD localhost, when i check

@rohitmalhotra1420
Copy link
Collaborator Author

Screenshot 2024-08-01 at 12 13 56 The options still shows up on PROD localhost, when i check

@corlard3y It is supposed to show everywhere but not on app.push.org.

Clicking on this option opens up app.push.org so that why when user is already on app.push.org there is no point of showing this option.

@corlard3y
Copy link
Collaborator

Screenshot 2024-08-01 at 12 13 56 The options still shows up on PROD localhost, when i check

@corlard3y It is supposed to show everywhere but not on app.push.org.

Clicking on this option opens up app.push.org so that why when user is already on app.push.org there is no point of showing this option.

Okay got it, So we are checking with the URL, not the environment. Okay then

@rohitmalhotra1420 rohitmalhotra1420 merged commit 76e294a into main Aug 1, 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
bug Something isn't working Quick PR A PR that can be approved before finishing a coffee
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Production Dapp option in the header menu should not be visible in the app.push.org app
2 participants