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

Migrate wallets.tsx page to Chakra #9500

Merged
merged 24 commits into from
Apr 20, 2023

Conversation

ameeetgaikwad
Copy link
Contributor

@ameeetgaikwad ameeetgaikwad commented Feb 16, 2023

Description

Migrate wallets.tsx page from emotion to Chakra

Related Issue

#9353

@gatsby-cloud
Copy link

gatsby-cloud bot commented Feb 16, 2023

✅ ethereum-org-website-dev deploy preview ready

@ameeetgaikwad ameeetgaikwad changed the title Chakra/wallets.tsx Refactored Chakra/wallets.tsx Feb 16, 2023
@ameeetgaikwad ameeetgaikwad changed the title Refactored Chakra/wallets.tsx Migrate wallets.tsx page to Chakra Feb 19, 2023
Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @ameeetgaikwad

The overall result looks good but there are a few things we would like to add on this migration. Like deprecating the components from SharedStyledComponents.

Then, there are a few spacing differences I see, comparing it with the production version, that would be nice to cover as well.

Current implementation:
image

Production (how it should be):
image

src/pages-conditional/wallets.tsx Outdated Show resolved Hide resolved
@@ -19,6 +19,7 @@ import {
Divider,
GrayContainer,
Page,
RightColumn,
StyledCard,
TwoColumnContent,
} from "../components/SharedStyledComponents"
Copy link
Member

Choose a reason for hiding this comment

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

As part of this migration, we deprecated the components living on SharedStyledComponents. We need to replace them using Chakra components as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so I should refactor SharedStyledComponents first?

Copy link
Member

Choose a reason for hiding this comment

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

No, you need to:

  1. remove that dependency
  2. replace all previous imported components like TwoColumnContent, GrayContainer, etc. with Chakra components

You can take a look at other PRs and see how it was done. For example, #9524.

src/pages-conditional/wallets.tsx Outdated Show resolved Hide resolved
src/pages-conditional/wallets.tsx Outdated Show resolved Hide resolved
@pettinarip pettinarip merged commit d7a9cce into ethereum:dev Apr 20, 2023
@gitpoap-bot
Copy link

gitpoap-bot bot commented Apr 20, 2023

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

Be sure to join the Ethereum.org discord if you are interested in contributing further to the project or have any questions for the team.

GitPOAP: 2023 Ethereum.org Contributor:

GitPOAP: 2023 Ethereum.org Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@nhsz nhsz mentioned this pull request Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived: chakra-migration content 🖋️ This involves copy additions or edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants