This commit is contained in:
Arjun Patel
2026-06-11 10:14:31 -07:00
parent c8233c6f0f
commit aa33622750
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -192,7 +192,7 @@ export default function NetworkSettingsPage() {
},
{ replace: true },
);
}, [setSearchParams]);
}, [setSearchParams, searchParams]);
const networkName = network?.name ?? 'Network';
const memberCount = network?.humans.length ?? 0;
@@ -293,7 +293,7 @@ export default function NetworkSettingsPage() {
<SectionHeading
title="Pending invitations"
description="Invites that haven't been accepted yet."
count={pendingCount}
count={pendingCount > 0 ? pendingCount : undefined}
/>
{invitationsError ? (
<Panel>
@@ -27,14 +27,16 @@ function EmailChip({
return (
<span className="bg-secondary text-secondary-foreground inline-flex items-center gap-1 rounded-md py-0.5 pl-2 pr-1 text-xs">
{email}
<button
<Button
type="button"
variant="ghost"
size="icon-sm"
onClick={onRemove}
aria-label={`Remove ${email}`}
className="text-muted-foreground hover:text-foreground"
className="text-muted-foreground hover:text-foreground size-5"
>
<X className="size-3" />
</button>
</Button>
</span>
);
}
-1
View File
@@ -12,7 +12,6 @@
"resolveJsonModule": true,
"jsx": "react-jsx",
"strict": true,
"ignoreDeprecations": "6.0",
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]