nits
This commit is contained in:
@@ -192,7 +192,7 @@ export default function NetworkSettingsPage() {
|
|||||||
},
|
},
|
||||||
{ replace: true },
|
{ replace: true },
|
||||||
);
|
);
|
||||||
}, [setSearchParams]);
|
}, [setSearchParams, searchParams]);
|
||||||
|
|
||||||
const networkName = network?.name ?? 'Network';
|
const networkName = network?.name ?? 'Network';
|
||||||
const memberCount = network?.humans.length ?? 0;
|
const memberCount = network?.humans.length ?? 0;
|
||||||
@@ -293,7 +293,7 @@ export default function NetworkSettingsPage() {
|
|||||||
<SectionHeading
|
<SectionHeading
|
||||||
title="Pending invitations"
|
title="Pending invitations"
|
||||||
description="Invites that haven't been accepted yet."
|
description="Invites that haven't been accepted yet."
|
||||||
count={pendingCount}
|
count={pendingCount > 0 ? pendingCount : undefined}
|
||||||
/>
|
/>
|
||||||
{invitationsError ? (
|
{invitationsError ? (
|
||||||
<Panel>
|
<Panel>
|
||||||
|
|||||||
@@ -27,14 +27,16 @@ function EmailChip({
|
|||||||
return (
|
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">
|
<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}
|
{email}
|
||||||
<button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
|
variant="ghost"
|
||||||
|
size="icon-sm"
|
||||||
onClick={onRemove}
|
onClick={onRemove}
|
||||||
aria-label={`Remove ${email}`}
|
aria-label={`Remove ${email}`}
|
||||||
className="text-muted-foreground hover:text-foreground"
|
className="text-muted-foreground hover:text-foreground size-5"
|
||||||
>
|
>
|
||||||
<X className="size-3" />
|
<X className="size-3" />
|
||||||
</button>
|
</Button>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"ignoreDeprecations": "6.0",
|
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": ["./src/*"]
|
||||||
|
|||||||
Reference in New Issue
Block a user