mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-08 22:05:16 +02:00
Generalized frontend model store (#193)
This commit is contained in:
@@ -14,7 +14,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: 'notice' },
|
||||
trialing: { label: 'Personal Use', color: 'info' },
|
||||
};
|
||||
|
||||
export function LicenseBadge() {
|
||||
@@ -23,12 +23,7 @@ export function LicenseBadge() {
|
||||
|
||||
if (check.error) {
|
||||
return (
|
||||
<LicenseBadgeButton
|
||||
color="danger"
|
||||
onClick={() => {
|
||||
openSettings.mutate(SettingsTab.License);
|
||||
}}
|
||||
>
|
||||
<LicenseBadgeButton color="danger" onClick={() => openSettings.mutate(SettingsTab.License)}>
|
||||
License Error
|
||||
</LicenseBadgeButton>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user