♻️ refactor: Simplify node display in subscribe form and remove unused Badge import

This commit is contained in:
web
2025-08-26 11:38:45 -07:00
parent ee98e7e513
commit 551135de77
2 changed files with 4 additions and 15 deletions
@@ -10,7 +10,6 @@ import {
AccordionItem,
AccordionTrigger,
} from '@workspace/ui/components/accordion';
import { Badge } from '@workspace/ui/components/badge';
import { Button } from '@workspace/ui/components/button';
import { Checkbox } from '@workspace/ui/components/checkbox';
import {
@@ -829,20 +828,11 @@ export default function SubscribeForm<T extends Record<string, any>>({
key={node.id}
className='flex items-center justify-between gap-3'
>
<span className='font-medium'>{node.name}</span>
<span className='text-muted-foreground'>
{node.address}:{node.port ?? '—'}
</span>
<span className='font-mono text-xs uppercase'>
{node.protocol || '—'}
</span>
<span className='flex flex-wrap justify-end gap-1'>
{(node.tags || []).map((tg) => (
<Badge key={tg} variant='outline'>
{tg}
</Badge>
))}
<span>{node.name}</span>
<span>
{node.address}:{node.port}
</span>
<span>{node.protocol}</span>
</li>
))}
</ul>