Skip to content

Commit

Permalink
Add notes for version 12+
Browse files Browse the repository at this point in the history
And fix link to tx insights feature
  • Loading branch information
Montoya committed Jul 31, 2024
1 parent 12b370b commit 9416e7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions snaps/features/custom-ui/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_position: 4

:::caution
This version of custom UI is deprecated. If you're building a new Snaps project,
use [custom UI with JSX](./with-jsx).
use [custom UI with JSX](./with-jsx). JSX is supported in MetaMask Extension and Flask version 12+.
:::

You can display custom user interface (UI) components using the
Expand All @@ -16,7 +16,7 @@ implementing the following features:

- [Dialogs](dialogs.md)
- [Home pages](home-pages.md)
- [Transaction insights](../../reference/entry-points.md#ontransaction)
- [Transaction insights](../transaction-insights.md)
- [Signature insights](../signature-insights.md)

To use custom UI, first install [`@metamask/snaps-sdk`](https://github.com/MetaMask/snaps/tree/main/packages/snaps-sdk)
Expand Down
6 changes: 5 additions & 1 deletion snaps/features/custom-ui/with-jsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ implementing the following features:

- [Dialogs](dialogs.md)
- [Home pages](home-pages.md)
- [Transaction insights](../../reference/entry-points.md#ontransaction)
- [Transaction insights](../transaction-insights.md)
- [Signature insights](../signature-insights.md)

:::note
JSX is supported in MetaMask Extension and Flask version 12+. New UI components will be added as JSX components. The previous function-based library is deprecated.
:::

To use custom UI with JSX, first install [`@metamask/snaps-sdk`](https://github.com/MetaMask/snaps/tree/main/packages/snaps-sdk)
using the following command:

Expand Down

0 comments on commit 9416e7c

Please sign in to comment.