Fix inert type to boolean and apply linter formatting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
cliffhall 2026-04-02 18:06:46 -04:00
commit bf31ae6cfc
5 changed files with 8 additions and 7 deletions

View file

@ -7,7 +7,7 @@ const meta: Meta<typeof ServerCard> = {
component: ServerCard,
args: {
onToggleConnection: fn(),
onSetConnectingServer: fn(),
onSetActiveServer: fn(),
onServerInfo: fn(),
onSettings: fn(),
onEdit: fn(),

View file

@ -115,7 +115,7 @@ export function ServerCard({
padding="lg"
opacity={isDimmed ? 0.4 : 1}
style={isDimmed ? { pointerEvents: "none" } : undefined}
{...(isDimmed ? { "aria-disabled": true, inert: "" } : {})}
{...(isDimmed ? { "aria-disabled": true, inert: true } : {})}
>
<Stack gap="sm">
<Group justify="space-between" wrap="wrap">

View file

@ -133,7 +133,10 @@ export function ViewHeader(props: ViewHeaderProps) {
</CenterSection>
<RightSection>
<ServerStatusIndicator status={props.status} latencyMs={props.latencyMs} />
<ServerStatusIndicator
status={props.status}
latencyMs={props.latencyMs}
/>
<DisconnectButton onClick={props.onDisconnect}>
Disconnect
</DisconnectButton>

View file

@ -28,9 +28,7 @@ export function ServerListScreen({
onImportServerJson,
}: ServerListScreenProps) {
const [compact, setCompact] = useState<boolean>(false);
const [activeServer, setActiveServer] = useState<
string | undefined
>();
const [activeServer, setActiveServer] = useState<string | undefined>();
function handleToggleList() {
setCompact((prev) => (prev === true ? false : true));

View file

@ -226,4 +226,4 @@ export const ManyServers: Story = {
/>
),
},
};
};