-
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Expand notification args (#4682)
## Explanation * What is the current state of things and why does it need to change? The notification controller cannot accommodate "expanded view" snaps notifications * What is the solution your changes offer and how does it work? The extra properties being sent with the `show` method will now be persisted as well so the extension can use it to show JSX content for snaps within an expanded view of a notification. ## Changelog ### `@metamask/notification-controller` - **CHANGED**: `show` function's arguments to be an object so we can persist the extra properties needed to show JSX content in snap notifications. ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
- Loading branch information
Showing
2 changed files
with
63 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters