style(analytics): format JSX and object literals consistently

This commit is contained in:
MythEclipse
2026-06-03 18:27:41 +07:00
parent 58f5d4f7ce
commit b5a218daa1
6 changed files with 78 additions and 39 deletions
@@ -142,17 +142,21 @@ export function ViolatorTable({ users, loading }: ViolatorTableProps) {
</td>
<td className="py-1.5 pr-4">
<div className="flex flex-wrap gap-1">
{user.worst_flags?.length > 0
? user.worst_flags.slice(0, 3).map((flag) => (
<Badge
key={flag}
variant="outline"
className="text-[8px] px-1 py-0 border-accent/30 text-accent"
>
{flag}
</Badge>
))
: <span className="text-[10px] text-muted-foreground"></span>}
{user.worst_flags?.length > 0 ? (
user.worst_flags.slice(0, 3).map((flag) => (
<Badge
key={flag}
variant="outline"
className="text-[8px] px-1 py-0 border-accent/30 text-accent"
>
{flag}
</Badge>
))
) : (
<span className="text-[10px] text-muted-foreground">
</span>
)}
</div>
</td>
</tr>