Skip to content

Commit

Permalink
Fix: Move /welcome route to application group (#4721)
Browse files Browse the repository at this point in the history
* move add source modal

* unused import

* move file drop

* less disruptive
  • Loading branch information
briangregoryholmes authored Apr 26, 2024
1 parent 39d9f94 commit 6be3f7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web-local/src/routes/(application)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@
import PreparingImport from "@rilldata/web-common/features/sources/modal/PreparingImport.svelte";
import Navigation from "@rilldata/web-common/layout/navigation/Navigation.svelte";
import AddSourceModal from "@rilldata/web-common/features/sources/modal/AddSourceModal.svelte";
import { page } from "$app/stores";
let showDropOverlay = false;
$: ({
url: { pathname },
} = $page);
function isEventWithFiles(event: DragEvent) {
let types = event?.dataTransfer?.types;
return types && types.indexOf("Files") != -1;
Expand All @@ -31,7 +36,9 @@
if (isEventWithFiles(e)) showDropOverlay = true;
}}
>
<Navigation />
{#if pathname !== "/welcome"}
<Navigation />
{/if}
<section class="size-full overflow-hidden">
<slot />
</section>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6be3f7e

Please sign in to comment.