feat: relay info

This commit is contained in:
codytseng
2025-01-17 17:04:05 +08:00
parent 64a5573969
commit 76dd184c14
9 changed files with 163 additions and 45 deletions

View File

@@ -1,5 +1,5 @@
import { useSecondaryPage } from '@/PageManager'
import { toNoteList } from '@/lib/link'
import { toRelay } from '@/lib/link'
import { TEmbeddedRenderer } from './types'
export function EmbeddedWebsocketUrl({ url }: { url: string }) {
@@ -9,7 +9,7 @@ export function EmbeddedWebsocketUrl({ url }: { url: string }) {
className="cursor-pointer px-1 text-highlight hover:bg-highlight/20"
onClick={(e) => {
e.stopPropagation()
push(toNoteList({ relay: url }))
push(toRelay(url))
}}
>
[ {url} ]