refactor: flex styles / fixes / profile links

This commit is contained in:
2023-10-17 14:02:59 +01:00
parent 6479a18cb2
commit faaeb6af4a
108 changed files with 464 additions and 508 deletions

View File

@ -110,16 +110,6 @@ export function eventLink(hex: u256, relays?: Array<string> | string) {
return `/e/${encoded}`;
}
/**
* Convert hex pubkey to bech32 link url
*/
export function profileLink(hex: HexKey, relays?: Array<string> | string) {
const encoded = relays
? encodeTLV(NostrPrefix.Profile, hex, Array.isArray(relays) ? relays : [relays])
: hexToBech32(NostrPrefix.PublicKey, hex);
return `/p/${encoded}`;
}
/**
* Convert hex to bech32
*/