Fix suggestions component
This commit is contained in:
@@ -10,8 +10,9 @@
|
||||
import WotScore from "@lib/components/WotScore.svelte"
|
||||
import ProfileCircle from "@app/components/ProfileCircle.svelte"
|
||||
|
||||
const {pubkey} = $props()
|
||||
const {value} = $props()
|
||||
|
||||
const pubkey = value
|
||||
const profileDisplay = deriveProfileDisplay(pubkey)
|
||||
const handle = deriveHandleForPubkey(pubkey)
|
||||
const score = deriveUserWotScore(pubkey)
|
||||
|
||||
@@ -85,10 +85,10 @@ export const makeEditor = ({
|
||||
editor: (this as any).editor,
|
||||
search: (term: string) => get(profileSearch).searchValues(term),
|
||||
getRelays: (pubkey: string) => ctx.app.router.FromPubkeys([pubkey]).getUrls(),
|
||||
createSuggestion: (pubkey: string) => {
|
||||
createSuggestion: (value: string) => {
|
||||
const target = document.createElement("div")
|
||||
|
||||
mount(ProfileSuggestion, {target, props: {pubkey}})
|
||||
mount(ProfileSuggestion, {target, props: {value}})
|
||||
|
||||
return target
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user