diff --git a/src/app/components/ProfileDetail.svelte b/src/app/components/ProfileDetail.svelte index c7dde61f..c6d99f32 100644 --- a/src/app/components/ProfileDetail.svelte +++ b/src/app/components/ProfileDetail.svelte @@ -1,5 +1,6 @@
- {#each $events as event (event.id)} + {#each feedEvents as event (event.id)}
diff --git a/src/app/components/ProfilePinnedNotes.svelte b/src/app/components/ProfilePinnedNotes.svelte deleted file mode 100644 index 088fe0fd..00000000 --- a/src/app/components/ProfilePinnedNotes.svelte +++ /dev/null @@ -1,96 +0,0 @@ - - -{#if $pinnedIds.length > 0 || loading} - {#if loading && $pinnedEvents.length === 0} -

- -

- {:else if $pinnedEvents.length > 0} -
- {#each $pinnedEvents as event (event.id)} -
- -
- {/each} -
- {/if} -{/if} diff --git a/src/app/components/ProfileSharedSpaces.svelte b/src/app/components/ProfileSharedSpaces.svelte index 3426731e..d6e29bb0 100644 --- a/src/app/components/ProfileSharedSpaces.svelte +++ b/src/app/components/ProfileSharedSpaces.svelte @@ -41,7 +41,7 @@ {@const isMember = !isSelf && $userSpaceUrls.includes(url)} + class="card card-interactive flex flex-row items-center justify-between gap-3 p-3 sm:p-4">
diff --git a/src/app/routes.ts b/src/app/routes.ts index 23d223e9..9938a119 100644 --- a/src/app/routes.ts +++ b/src/app/routes.ts @@ -48,8 +48,6 @@ export const setupHistory = () => export const makeProfilePath = (pubkey: string) => `/people/${nip19.npubEncode(pubkey)}` -export const goToProfile = (pubkey: string) => goto(makeProfilePath(pubkey)) - // Chat export const makeChatPath = (pubkeys: string[]) => `/chat/${makeChatId(pubkeys)}` diff --git a/src/routes/people/[npub]/+layout.svelte b/src/routes/people/[npub]/+layout.svelte new file mode 100644 index 00000000..d3caf99c --- /dev/null +++ b/src/routes/people/[npub]/+layout.svelte @@ -0,0 +1,14 @@ + + +{#key $page.params.npub} + {@render children?.()} +{/key}