Skip to content

fix(campaigns): wire up follow button action#67

Merged
herissonnogueira merged 2 commits into
mainfrom
fix/follow-button-action
Apr 9, 2026
Merged

fix(campaigns): wire up follow button action#67
herissonnogueira merged 2 commits into
mainfrom
fix/follow-button-action

Conversation

@herissonnogueira

Copy link
Copy Markdown
Collaborator

Summary

The follow button on the campaign page wasn't doing anything. Now it toggles the favorite state via the API and updates the button text/style accordingly.

Also fixed the route model binding to resolve campaigns by slug instead of id.

Context

Closes https://linear.app/benevolus/issue/BEN-52/botao-de-seguir-campanha-sem-acao

chrome_JwWxTksYTF

@herissonnogueira

Copy link
Copy Markdown
Collaborator Author

Fixed the CI - favorite tests were using campaign id instead of slug after the route binding change.

@herissonnogueira herissonnogueira merged commit 3675a33 into main Apr 9, 2026
2 checks passed
@herissonnogueira herissonnogueira deleted the fix/follow-button-action branch April 9, 2026 03:35
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