Migrate more stuff

This commit is contained in:
Jon Staab
2025-02-03 16:37:14 -08:00
parent 0f705c459a
commit 8d3433b167
150 changed files with 2001 additions and 1205 deletions
+8 -1
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import type {Snippet} from "svelte"
import {page} from "$app/stores"
import {pubkey} from "@welshman/app"
import Landing from "@app/components/Landing.svelte"
@@ -9,6 +10,12 @@
import {BURROW_URL} from "@app/state"
import {modals, pushModal} from "@app/modal"
interface Props {
children: Snippet
}
let {children}: Props = $props()
if (BURROW_URL && !$pubkey) {
if ($page.url.pathname === "/confirm-email") {
pushModal(EmailConfirm, {
@@ -29,7 +36,7 @@
<div class="flex h-screen overflow-hidden">
{#if $pubkey}
<PrimaryNav>
<slot />
{@render children?.()}
</PrimaryNav>
{:else if !$modals[$page.url.hash.slice(1)]}
<Landing />