Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Revamp interactive UI example using JSX #2427

Merged
merged 3 commits into from
May 23, 2024

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented May 22, 2024

Revamps the interactive UI example, rewriting most of the UI logic in JSX and removing the getState functionality.

This will let us more easily test different types of inputs once added as well, e.g. Dropdown.

This also uses the new context property and lets us remove the usage of manageState entirely from the Snap.

GuillaumeRx
GuillaumeRx previously approved these changes May 22, 2024
@@ -81,4 +83,5 @@ export type UserInputEvent = Infer<typeof UserInputEventStruct>;
export type OnUserInputHandler = (args: {
id: string;
event: UserInputEvent;
context: InterfaceContext | null;
Copy link
Member Author

Choose a reason for hiding this comment

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

Forgot to add this type in #2413

@FrederikBolding FrederikBolding marked this pull request as ready for review May 23, 2024 13:26
@FrederikBolding FrederikBolding requested a review from a team as a code owner May 23, 2024 13:26
@FrederikBolding FrederikBolding force-pushed the fb/revamp-interactive-ui-example branch from 23fc1db to 03ae2e4 Compare May 23, 2024 13:47
@FrederikBolding FrederikBolding merged commit 6633bab into main May 23, 2024
151 checks passed
@FrederikBolding FrederikBolding deleted the fb/revamp-interactive-ui-example branch May 23, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants