You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new TYP target: purchase.thank-you.announcment.render (#3012)
Part of shop/issues-checkout#5935
### Background
This PR adds a new extension target for the Thank You page, allowing developers to render dismissable announcements at the top of the page.
### Solution
Added a new extension target called `purchase.thank-you.announcement.render` that renders a dismissable announcement on the Thank You page. This provides developers with another way to communicate important information to customers after they complete their purchase.
The implementation includes:
- Adding the target definition to the `RenderExtensionTargets` interface
- Creating documentation for the new target
- Adding example implementations in both JS and React (TSX) formats
- Updating the helper docs to include the new examples
### 🎩
- Create a new extension using the `purchase.thank-you.announcement.render` target
- Complete a checkout flow to verify the announcement appears correctly on the Thank You page
- Verify the announcement is dismissable
### Checklist
- [ ] I have 🎩'd these changes
- [ ] I have updated relevant documentation
0 commit comments