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

Refactoring for improvements #88

Closed
wants to merge 6 commits into from

Conversation

gabin-dongmo
Copy link
Contributor

@gabin-dongmo gabin-dongmo commented Sep 11, 2023

  • Renamed CountryData to UserProfile
  • Extracted SvgViewBox component
  • Provided strong type for props in Card and PreviewCard
  • Improved typing
  • Extracted CardSocial component to improve readability

@vercel
Copy link

vercel bot commented Sep 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wolrd-portfolios ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2023 5:33am

@ln-dev7
Copy link
Owner

ln-dev7 commented Sep 12, 2023

Why change CountryData to UserProfile ?

also, this amendment would update the #80

@gabin-dongmo
Copy link
Contributor Author

gabin-dongmo commented Sep 12, 2023

Why change CountryData to UserProfile ?

also, this amendment would update the #80

Because the interface refers conceptually to a user's profile instead of a country. Granted, we have profiles organized by countries, but they're still user profiles.

Maybe a name different from UserProfile might resonate better...

@ln-dev7
Copy link
Owner

ln-dev7 commented Sep 12, 2023

Okay, I understand better, thank

@Sanix-Darker , could you give your opinion please?

@gabin-dongmo
Copy link
Contributor Author

I realize I went ahead of myself and pushed changes without specifying the issues addressed. I will close this PR and introduce a proper issue to illustrate the changes suggested.
@ln-dev7

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.

2 participants