diff --git a/src/lib/components/UserDisplayName.svelte b/src/lib/components/UserDisplayName.svelte new file mode 100644 index 0000000..a8cb9db --- /dev/null +++ b/src/lib/components/UserDisplayName.svelte @@ -0,0 +1,58 @@ + +{$displayName} diff --git a/src/lib/components/UserName.svelte b/src/lib/components/UserName.svelte deleted file mode 100644 index 0ce5e54..0000000 --- a/src/lib/components/UserName.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - -
- - - -
- {wotScore} -
-
\ No newline at end of file diff --git a/src/lib/components/UserProfile.svelte b/src/lib/components/UserProfile.svelte deleted file mode 100644 index e69de29..0000000 diff --git a/src/lib/stores/user.ts b/src/lib/stores/user.ts index d4b46d2..ee5587b 100644 --- a/src/lib/stores/user.ts +++ b/src/lib/stores/user.ts @@ -1,3 +1,6 @@ +import type { NostrEvent } from "nostr-tools"; import { writable, type Writable } from "svelte/store"; -export let currentPubkey = writable(undefined) \ No newline at end of file +export let currentPubkey = writable(undefined) + +export let kind0 = writable(new Map) \ No newline at end of file diff --git a/src/lib/views/messages/RenderKind1.svelte b/src/lib/views/messages/RenderKind1.svelte index 1cfc11b..ceceac7 100644 --- a/src/lib/views/messages/RenderKind1.svelte +++ b/src/lib/views/messages/RenderKind1.svelte @@ -9,6 +9,7 @@ import { inview } from 'svelte-inview'; import { onMount } from 'svelte'; import { viewed } from '@/snort_workers/main'; + import UserDisplayName from '@/components/UserDisplayName.svelte'; export let note: NostrEvent; export let onClickReply: () => void; @@ -38,7 +39,7 @@ onMount(() => { alt="profile pic" />
-
Marcus
+