Skip to content

fix(donations): integrate campaign summary with API data#69

Merged
herissonnogueira merged 2 commits into
mainfrom
fix/donate-campaign-aside-api
Apr 9, 2026
Merged

fix(donations): integrate campaign summary with API data#69
herissonnogueira merged 2 commits into
mainfrom
fix/donate-campaign-aside-api

Conversation

@herissonnogueira

Copy link
Copy Markdown
Collaborator

Summary

The campaign summary on the donation page was showing hardcoded placeholder data. Now it fetches real campaign data from the API.

Context

Closes https://linear.app/benevolus/issue/BEN-54/integrar-resumo-da-campanha-pela-api

chrome_eHJEhs2MKw

src={placeholder.src}
alt="Campanha"
<img
src={campaign?.image ?? placeholder.src}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Use a different image placeholder when there isn't one, such as on the campaign page.

@herissonnogueira

Copy link
Copy Markdown
Collaborator Author

Fixed the image placeholder. Now it shows a gallery icon when the campaign has no photo, same pattern as the campaign cards.

chrome_UevjdOywdo

@herissonnogueira herissonnogueira merged commit 46abe9a into main Apr 9, 2026
1 check passed
@herissonnogueira herissonnogueira deleted the fix/donate-campaign-aside-api branch April 9, 2026 15:34
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