refactor: 🏗️

This commit is contained in:
codytseng
2025-01-18 15:43:57 +08:00
parent 49933ee4a2
commit 08995d957c
7 changed files with 28 additions and 32 deletions

View File

@@ -20,8 +20,13 @@ export default function RelayInfo({ url }: { url: string }) {
{relayInfo.name && <div className="text-2xl font-semibold">{relayInfo.name}</div>}
</div>
<RelayBadges relayInfo={relayInfo} />
{!!relayInfo.tags?.length &&
relayInfo.tags.map((tag) => <Badge variant="secondary">{tag}</Badge>)}
{!!relayInfo.tags?.length && (
<div className="flex gap-2">
{relayInfo.tags.map((tag) => (
<Badge variant="secondary">{tag}</Badge>
))}
</div>
)}
{relayInfo.description && (
<div className="text-wrap break-words whitespace-pre-wrap mt-2">
{relayInfo.description}