forked from coracle/flotilla
Fix more stuff, particularly event handlers
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
import {pushModal} from "@app/modal"
|
||||
import {makeChatPath} from "@app/routes"
|
||||
|
||||
let {pubkey} = $props()
|
||||
const {pubkey} = $props()
|
||||
|
||||
const profile = deriveProfile(pubkey)
|
||||
const profileDisplay = deriveProfileDisplay(pubkey)
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
const openChat = () => ($canDecrypt ? goto(chatPath) : pushModal(ChatEnable, {next: chatPath}))
|
||||
|
||||
let following = $derived(
|
||||
const following = $derived(
|
||||
pubkey === $session!.pubkey || getPubkeyTagValues(getListTags($userFollows)).includes(pubkey),
|
||||
)
|
||||
</script>
|
||||
@@ -59,7 +59,7 @@
|
||||
</div>
|
||||
<ProfileInfo {pubkey} />
|
||||
<ModalFooter>
|
||||
<Button on:click={back} class="btn btn-link">
|
||||
<Button onclick={back} class="btn btn-link">
|
||||
<Icon icon="alt-arrow-left" />
|
||||
Go back
|
||||
</Button>
|
||||
@@ -68,7 +68,7 @@
|
||||
<Icon icon="user-circle" />
|
||||
See Complete Profile
|
||||
</Link>
|
||||
<Button on:click={openChat} class="btn btn-primary">
|
||||
<Button onclick={openChat} class="btn btn-primary">
|
||||
<Icon icon="letter" />
|
||||
Open Chat
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user