From 6869c40bd3480891606ea126b70ca0120530c882 Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Fri, 12 Jul 2024 15:57:52 +0800 Subject: [PATCH] problem: rocketpill card is displayed when it should not be --- src/components/RocketPillCard.svelte | 10 +++++++--- src/components/Subheading.svelte | 9 --------- src/layouts/SidePanelLayout.svelte | 1 + 3 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 src/components/Subheading.svelte diff --git a/src/components/RocketPillCard.svelte b/src/components/RocketPillCard.svelte index 16d0962..ca80d9d 100644 --- a/src/components/RocketPillCard.svelte +++ b/src/components/RocketPillCard.svelte @@ -1,14 +1,18 @@ - +{#if $page.route.id != "/"} WTF I'm new to Nostrocket, wtf is this thing all about? - + - \ No newline at end of file + +{/if} \ No newline at end of file diff --git a/src/components/Subheading.svelte b/src/components/Subheading.svelte deleted file mode 100644 index ede3a29..0000000 --- a/src/components/Subheading.svelte +++ /dev/null @@ -1,9 +0,0 @@ - - -
-

- {title} -

-
diff --git a/src/layouts/SidePanelLayout.svelte b/src/layouts/SidePanelLayout.svelte index 7f4fcc7..91fedaa 100644 --- a/src/layouts/SidePanelLayout.svelte +++ b/src/layouts/SidePanelLayout.svelte @@ -12,6 +12,7 @@ import RocketPillCard from '../components/RocketPillCard.svelte'; import { base } from '$app/paths'; import Login from '../components/Login.svelte'; + import { page } from '$app/stores'; export let title = '';