feat: improve style of others relay list

This commit is contained in:
codytseng
2025-01-18 17:13:44 +08:00
parent 08995d957c
commit a85f636d24
5 changed files with 58 additions and 38 deletions

View File

@@ -3,7 +3,11 @@ import { TRelayList } from '@/types'
import { useEffect, useState } from 'react'
export function useFetchRelayList(pubkey?: string | null) {
const [relayList, setRelayList] = useState<TRelayList>({ write: [], read: [] })
const [relayList, setRelayList] = useState<TRelayList>({
write: [],
read: [],
originalRelays: []
})
const [isFetching, setIsFetching] = useState(true)
useEffect(() => {