Tweak license badge and fix keyring dep

This commit is contained in:
Gregory Schier
2025-10-01 21:01:27 -07:00
parent 8662b230e7
commit 2152cf87d7
6 changed files with 37 additions and 31 deletions
+2 -9
View File
@@ -15,7 +15,7 @@ const details: Record<
commercial_use: null,
invalid_license: { label: 'License Error', color: 'danger' },
personal_use: { label: 'Personal Use', color: 'notice' },
trialing: { label: 'Personal Use', color: 'info' },
trialing: { label: 'Trialing', color: 'info' },
};
export function LicenseBadge() {
@@ -46,11 +46,6 @@ function LicenseBadgeCmp() {
return null;
}
// User is trialing but has already seen the message, so hide badge
if (check.data.type === 'trialing') {
return null;
}
const detail = details[check.data.type];
if (detail == null) {
return null;
@@ -59,9 +54,7 @@ function LicenseBadgeCmp() {
return (
<BadgeButton
color={detail.color}
onClick={async () => {
openSettings.mutate('license');
}}
onClick={() => openSettings.mutate('license')}
>
{detail.label}
</BadgeButton>