Explicitly set the request layout (#257)

This commit is contained in:
Gregory Schier
2025-09-25 07:23:52 -07:00
committed by GitHub
parent 73ad86c6b9
commit df15543c80
8 changed files with 41 additions and 16 deletions

View File

@@ -2,8 +2,8 @@ import type { LicenseCheckStatus } from '@yaakapp-internal/license';
import { useLicense } from '@yaakapp-internal/license';
import type { ReactNode } from 'react';
import { openSettings } from '../commands/openSettings';
import { appInfo } from '../lib/appInfo';
import { useLicenseConfirmation } from '../hooks/useLicenseConfirmation';
import { appInfo } from '../lib/appInfo';
import { BadgeButton } from './core/BadgeButton';
import type { ButtonProps } from './core/Button';
@@ -26,11 +26,9 @@ export function LicenseBadge() {
}
if (check.error) {
return (
<BadgeButton color="danger" onClick={() => openSettings.mutate('license')}>
License Error
</BadgeButton>
);
// Failed to check for license. Probably a network or server error so just don't
// show anything.
return null;
}
// Hasn't loaded yet