From 47d26f8c46967220d57018abd0e09cb6f7439410 Mon Sep 17 00:00:00 2001 From: Samuel Andert Date: Thu, 27 Jul 2023 18:21:54 +0200 Subject: [PATCH] updated the Google Flow UI part1 --- src/lib/components/GoogleAuth.svelte | 158 ++++++++++++--------------- 1 file changed, 67 insertions(+), 91 deletions(-) diff --git a/src/lib/components/GoogleAuth.svelte b/src/lib/components/GoogleAuth.svelte index 17a4c2f..b9b0434 100644 --- a/src/lib/components/GoogleAuth.svelte +++ b/src/lib/components/GoogleAuth.svelte @@ -1,152 +1,128 @@ -
-
+
+
{#if error} -

Error

-

{error.message}

- - {:else if isLoading} -

Loading...

- {:else if view === 'sign_in'} +
+

Error

+

{error.message}

+
+ {:else if view === 'SIGN_IN'} - {:else if view === 'fetching'} -

Fetching your PKPs...

- {:else if view === 'NO_PKPS'} -

No PKPs found.

- - {:else if view === 'fetched'} -

Select a PKP to continue

- {#each pkps as pkp} - - {/each} - {:else if view === 'MINTING'} -

Minting your PKP...

- {:else if view === 'MINTED'} -

Minted!

- {:else if view === 'CREATING_SESSION'} -

Creating session...

- {:else if view === 'SESSION_CREATED'} -

Ready for the open web

+ {:else if view === 'PKP'}
+

Select a PKP to continue

+ {#each pkps as pkp} + + {/each} +
+ {:else if view === 'READY'} +
+

Ready for the open web

Check out your PKP:

{currentPKP.ethAddress}

+
- {/if} +
{log}
-
+