Get rid of profile detail, redirect externally

This commit is contained in:
Jon Staab
2024-10-24 12:50:49 -07:00
parent 03b4f2c46c
commit cad096b019
15 changed files with 57 additions and 201 deletions
+4 -10
View File
@@ -1,20 +1,14 @@
<script lang="ts">
import {displayProfile} from "@welshman/util"
import {deriveProfile} from "@welshman/app"
import Button from "@lib/components/Button.svelte"
import ProfileDetail from "@app/components/ProfileDetail.svelte"
import {pushDrawer} from "@app/modal"
import Link from "@lib/components/Link.svelte"
import {pubkeyLink} from "@app/state"
export let value
const profile = deriveProfile(value.pubkey)
const onClick = (e: Event) => {
e.stopPropagation()
pushDrawer(ProfileDetail, {pubkey: value.pubkey})
}
</script>
<Button on:click={onClick} class="link-content">
<Link external href={pubkeyLink(value.pubkey)} class="link-content">
@{displayProfile($profile)}
</Button>
</Link>