mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:08:32 +02:00
Update license check to use status instead of type
This commit is contained in:
@@ -199,7 +199,7 @@ function NativeTitlebarSetting({ settings }: { settings: Settings }) {
|
|||||||
|
|
||||||
function LicenseSettings({ settings }: { settings: Settings }) {
|
function LicenseSettings({ settings }: { settings: Settings }) {
|
||||||
const license = useLicense();
|
const license = useLicense();
|
||||||
if (license.check.data?.type !== 'personal_use') {
|
if (license.check.data?.status !== 'personal_use') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export function SettingsDropdown() {
|
|||||||
{
|
{
|
||||||
label: 'Purchase License',
|
label: 'Purchase License',
|
||||||
color: 'success',
|
color: 'success',
|
||||||
hidden: check.data == null || check.data.type === 'commercial_use',
|
hidden: check.data == null || check.data.status === 'active',
|
||||||
leftSlot: <Icon icon="circle_dollar_sign" />,
|
leftSlot: <Icon icon="circle_dollar_sign" />,
|
||||||
onSelect: () => openSettings.mutate('license'),
|
onSelect: () => openSettings.mutate('license'),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user