From d9cc3db8182ce4f9bd6b0dce381af6f2cc854070 Mon Sep 17 00:00:00 2001 From: dskvr Date: Sat, 13 Apr 2024 05:08:45 +0200 Subject: [PATCH] fix profile in dark mode, add skeleton when operator feed hasn't loaded --- .../blocks/operator-profile/operator-profile.svelte | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/components/blocks/operator-profile/operator-profile.svelte b/src/lib/components/blocks/operator-profile/operator-profile.svelte index 07c82b3..3ba683d 100644 --- a/src/lib/components/blocks/operator-profile/operator-profile.svelte +++ b/src/lib/components/blocks/operator-profile/operator-profile.svelte @@ -15,10 +15,11 @@ import { MY_RELAY_PAGE } from '$lib/contextKeys'; import type { Writable } from 'svelte/store'; - import type { MRPRelay } from "$lib/core/relay"; - import type { MRPUser } from '$lib/core/user'; + import type { MRPRelay } from "$lib/core/MRPRelay"; + import { MRPUser } from '$lib/core/MRPUser'; import type { NDKUserProfile } from '@nostr-dev-kit/ndk'; import Note from '$lib/components/partials/note.svelte'; + import Skeleton from '$lib/components/ui/skeleton2/Skeleton.svelte'; export let key: string; @@ -132,9 +133,13 @@ {/each} {:else} -
+ {#if owner?.feed?.isComplete } +
seems the operator is quiet, no notes
+ {:else} + + {/if} {/if}