diff --git a/src/app/components/AppContainer.svelte b/src/app/components/AppContainer.svelte new file mode 100644 index 000000000..6de12224d --- /dev/null +++ b/src/app/components/AppContainer.svelte @@ -0,0 +1,17 @@ + + +
+ + {#if $pubkey} + + {:else} + + {/if} + +
+ diff --git a/src/app/components/ModalContainer.svelte b/src/app/components/ModalContainer.svelte new file mode 100644 index 000000000..c17269731 --- /dev/null +++ b/src/app/components/ModalContainer.svelte @@ -0,0 +1,56 @@ + + + + {#if modal && !modal.options?.drawer} + {#key hash} + + {/key} + + {/if} + + + {#if modal && modal.options?.drawer} + {#key hash} + + {/key} + {/if} + diff --git a/src/lib/components/ModalBox.svelte b/src/lib/components/ModalBox.svelte deleted file mode 100644 index 66fb086d7..000000000 --- a/src/lib/components/ModalBox.svelte +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 96e206ffd..350e24ee3 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,7 +1,6 @@ @@ -201,36 +144,9 @@
{:then}
-
- - {#if $pubkey} - - {/if} - -
- - {#if modal && !modal.options?.drawer} - {#key modal} - - {/key} - - {/if} - {#if $session} - - - {#if modal && modal.options?.drawer} - {#key modal} - - {/key} - {/if} - - + + + +
{/await}