Closed HrithikSampson closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
giveth-dapps-v2 | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 9, 2024 1:24am |
The changes involve the removal of localization strings related to project ownership and donation eligibility from multiple language files (ca.json
, en.json
, es.json
). Additionally, the DonateIndex.tsx
component has been simplified by eliminating state management and conditional rendering associated with project owner donations, including the removal of the DonationByProjectOwner
component.
Files | Change Summary |
---|---|
lang/ca.json , lang/en.json , lang/es.json |
Removed localization strings "label.project_owner_address_detected" and "label.project_owner_cant_donate_to_own_project" from each file. |
src/components/views/donate/DonateIndex.tsx |
Removed state management and conditional rendering related to project owner donations, including the deletion of the DonationByProjectOwner component. |
🐰 In the meadow where donations flow,
A simpler path we now bestow.
With strings removed, the message clear,
For every project, lend a cheer!
No more fuss, just hop along,
Together we can all be strong! 🌼
src/components/views/donate/DonateIndex.tsx (2)
`1-1`: **Removal of `DonationByProjectOwner` import.** The removal of the import statement for `DonationByProjectOwner` aligns with the PR's objective to revert functionality related to this component. This change is necessary to ensure that unused imports are cleaned up, which helps in maintaining cleaner code and potentially reducing bundle size. --- `1-1`: **Review of component logic post-removal of donation by project owner functionality.** The removal of the `showDonationByProjectOwner` state and its effects appears to be cleanly executed. The component does not contain any residual references to this state, and the remaining logic related to other donation functionalities seems intact and functional. This simplification could potentially improve the maintainability and performance of the component by reducing complexity and the number of re-renders.
Reverts Giveth/giveth-dapps-v2#4626 for release
Summary by CodeRabbit
New Features
Bug Fixes
Refactor