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

refactor: create components.ts config for every reward type #1354

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

BrickheadJohnny
Copy link
Collaborator

Extracted the hooks/components from our rewards config file to standalone components.ts config files.

When I checked with this script, the number of circular imports decreased from 118 to 76. 🚀

The bundle size also decreased significantly in some cases:

image

@BrickheadJohnny BrickheadJohnny added the improvement Ui, code, scalablity, security improvements label Jul 4, 2024
@BrickheadJohnny BrickheadJohnny self-assigned this Jul 4, 2024
Copy link

vercel bot commented Jul 4, 2024

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

Name Status Preview Comments Updated (UTC)
guild-xyz ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 2:41pm

* fix(type): address type errors around rewards

* fix: resolve type errors

* refactor: fix circular imports, add types

* refactor: add missed types
@BrickheadJohnny BrickheadJohnny merged commit 465d77c into main Jul 4, 2024
1 of 2 checks passed
@BrickheadJohnny BrickheadJohnny deleted the extract-components-from-rewards-config branch July 4, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Ui, code, scalablity, security improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants