refactor: move bookmarks entry location
This commit is contained in:
parent
a847c4dc56
commit
5c2a016d4b
13 changed files with 95 additions and 69 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { TSearchParams } from '@/types'
|
||||
import { Event, nip19 } from 'nostr-tools'
|
||||
import { getNoteBech32Id } from './event'
|
||||
import { TSearchParams } from '@/types'
|
||||
|
||||
export const toHome = () => '/'
|
||||
export const toNote = (eventOrId: Event | string) => {
|
||||
|
|
@ -76,6 +76,7 @@ export const toRelay = (url: string) => `/relays/${encodeURIComponent(url)}`
|
|||
export const toRelayReviews = (url: string) => `/relays/${encodeURIComponent(url)}/reviews`
|
||||
export const toMuteList = () => '/mutes'
|
||||
export const toRizful = () => '/rizful'
|
||||
export const toBookmarks = () => '/bookmarks'
|
||||
|
||||
export const toChachiChat = (relay: string, d: string) => {
|
||||
return `https://chachi.chat/${relay.replace(/^wss?:\/\//, '').replace(/\/$/, '')}/${d}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue