diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConfirmConnectionDrawer.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConfirmConnectionDrawer.svelte index 552602801f..892f360e00 100644 --- a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConfirmConnectionDrawer.svelte +++ b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConfirmConnectionDrawer.svelte @@ -1,203 +1,29 @@ - -
- {#if $sessionProposal} - {@const requiredNamespaces = $sessionProposal.params.requiredNamespaces} - {@const optionalNamespaces = $sessionProposal.params.optionalNamespaces} - - - -
- {#if persistedNamespaces && !isPreferenceSelectionRequired} -
- -
- {:else} - {@const tipLocale = currentStep === 0 ? 'permissions' : currentStep === 1 ? 'networks' : 'accounts'} -
- - -
-
- -
- -
-
- -
-
- -
-
-
-
- {/if} -
- {:else} -
- -
- {/if} -
-
-
-
+{#if $connectionRequest?.type === 'session_proposal'} + +{:else if $connectionRequest?.type === 'session_authenticate'} + +{:else} + +
+ +
+
+
+
+{/if} diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/views/OneClickAuthFlow.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/views/OneClickAuthFlow.svelte new file mode 100644 index 0000000000..a6284d7cbf --- /dev/null +++ b/packages/desktop/views/dashboard/drawers/dapp-config/views/OneClickAuthFlow.svelte @@ -0,0 +1,206 @@ + + + +
+ + +
+
+ + +
+
+ +
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+
diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/views/SessionProposalFlow.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/views/SessionProposalFlow.svelte new file mode 100644 index 0000000000..2d6afc215b --- /dev/null +++ b/packages/desktop/views/dashboard/drawers/dapp-config/views/SessionProposalFlow.svelte @@ -0,0 +1,204 @@ + + + +
+ + +
+ {#if persistedNamespaces && !isPreferenceSelectionRequired} +
+ +
+ {:else} + {@const tipLocale = currentStep === 0 ? 'permissions' : currentStep === 1 ? 'networks' : 'accounts'} +
+ + +
+
+ +
+ +
+
+ +
+
+ +
+
+
+
+ {/if} +
+
+
+
+