Fix nprofile generation

This commit is contained in:
Jonathan Staab 2023-03-16 15:19:13 -05:00
parent 4e341b43b3
commit fe990f7d26
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
- [ ] https://github.com/staab/coracle/issues/42
- [ ] Show loading/success on zap invoice screen
- [ ] Fix iOS/safari/firefox
- [ ] Env vars to white label
- [ ] Add AUTH
# Others

View File

@ -19,7 +19,7 @@
"button-circle":
"w-10 h-10 flex justify-center items-center rounded-full bg-input text-accent whitespace-nowrap border border-solid border-gray-5",
"button-accent":
"py-2 px-4 rounded bg-accent text-white whitespace-nowrap border border-solid border-gray-5",
"py-2 px-4 rounded bg-accent text-white whitespace-nowrap border border-solid border-accent-light hover:bg-accent-light",
})
)
</script>

View File

@ -5,8 +5,8 @@
import {renderContent, noEvent} from "src/util/html"
import {displayPerson} from "src/util/nostr"
import Anchor from "src/partials/Anchor.svelte"
import PersonCircle from "src/partials/PersonCircle.svelte"
import {routes} from "src/app/ui"
import PersonCircle from "./PersonCircle.svelte"
export let person
export let addPetname = null

View File

@ -1,5 +1,5 @@
<script lang="ts">
import {prop} from "ramda"
import {pluck} from "ramda"
import {nip19} from "nostr-tools"
import Content from "src/partials/Content.svelte"
import QRCode from "src/partials/QRCode.svelte"
@ -8,7 +8,7 @@
export let person
const {pubkey} = person
const relays = [prop("url", getPubkeyWriteRelays(pubkey))]
const relays = [pluck("url", getPubkeyWriteRelays(pubkey))]
const nprofile = nip19.nprofileEncode({pubkey, relays})
</script>