From 4daa5475dbf1d4d14fb5f9895695c850a1ca7559 Mon Sep 17 00:00:00 2001
From: Gustavo Antunes <17601467+gantunesr@users.noreply.github.com>
Date: Sat, 26 Nov 2022 09:17:10 -0300
Subject: [PATCH] Update UI
---
app/components/Views/Wallet/index.tsx | 40 +++++++++++++++++++++++++--
1 file changed, 38 insertions(+), 2 deletions(-)
diff --git a/app/components/Views/Wallet/index.tsx b/app/components/Views/Wallet/index.tsx
index ac126c5b297..1a876d7c35d 100644
--- a/app/components/Views/Wallet/index.tsx
+++ b/app/components/Views/Wallet/index.tsx
@@ -353,7 +353,39 @@ const Wallet = ({ navigation }: any) => {
};
const sendMessageToWebview = () => {
- stream.write('HELLO');
+ // eslint-disable-next-line no-console
+ console.log('LOG: sendMessageToWebview executed');
+ stream.write(
+ JSON.stringify({
+ method: 'hello',
+ snapId: 'jobId-1',
+ args: { origin: 'origin', request: { method: 'hello' } },
+ }),
+ );
+ };
+
+ const createJob = () => {
+ // eslint-disable-next-line no-console
+ console.log('LOG: createJob executed');
+ stream.write(
+ JSON.stringify({
+ method: 'start-snap',
+ snapId: 'jobId-1',
+ args: { origin: 'origin', request: { method: 'hello' } },
+ }),
+ );
+ };
+
+ const passDataToStream = () => {
+ // eslint-disable-next-line no-console
+ console.log('LOG: passDataToStream executed');
+ stream.write(
+ JSON.stringify({
+ method: 'stream-to-iframe',
+ snapId: 'jobId-0',
+ args: { origin: 'origin', request: { method: 'hello' } },
+ }),
+ );
};
return (
@@ -372,12 +404,16 @@ const Wallet = ({ navigation }: any) => {
>
{selectedAddress ? renderContent() : renderLoader()}
-
+
+
+
{renderOnboardingWizard()}