feat: groups badge
This commit is contained in:
parent
1644a92615
commit
49933ee4a2
6 changed files with 48 additions and 13 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Button } from '@/components/ui/button'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { useFetchRelayInfos } from '@/hooks'
|
||||
import { useFetchRelayInfo } from '@/hooks'
|
||||
import { isWebsocketUrl, normalizeUrl } from '@/lib/url'
|
||||
import { useRelaySets } from '@/providers/RelaySetsProvider'
|
||||
import { CircleX, SearchCheck } from 'lucide-react'
|
||||
|
|
@ -77,9 +77,7 @@ export default function RelayUrls({ relaySetId }: { relaySetId: string }) {
|
|||
|
||||
function RelayUrl({ url, onRemove }: { url: string; onRemove: () => void }) {
|
||||
const { t } = useTranslation()
|
||||
const {
|
||||
relayInfos: [relayInfo]
|
||||
} = useFetchRelayInfos([url])
|
||||
const { relayInfo } = useFetchRelayInfo(url)
|
||||
|
||||
return (
|
||||
<div className="flex items-center justify-between">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue