Skip to content

Commit f74a517

Browse files
committed
chore: update license notice
1 parent 6575da8 commit f74a517

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

frontend/components/License.pro.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Title from 'antd/es/typography/Title'
77
import { useEffect, useRef } from 'react'
88
import { useSearchParam } from 'react-use'
99

10-
import LicenseInvalidAlert from './LicenseInvalidAlert.pro'
10+
import LicenseActivationNotice from './LicenseActivationNotice.pro'
1111
import CheckNewUpdate from './SupportPage/CheckNewUpdate'
1212
import pluginInfo from './SupportPage/data/pluginInfoData'
1313

@@ -120,7 +120,7 @@ export default function License({ pluginSlug }: { pluginSlug: string }) {
120120
{__('Deactivate License')}
121121
</Button>
122122

123-
<LicenseInvalidAlert forceCheckLicense />
123+
<LicenseActivationNotice />
124124
</>
125125
) : (
126126
<Button
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { __ } from '@common/helpers/i18nwrap'
2+
import { Alert } from 'antd'
3+
4+
import useCheckLicenseValidity from './SupportPage/data/useCheckLicenseValidity'
5+
6+
export default function LicenseActivationNotice() {
7+
const { isLicenseValid } = useCheckLicenseValidity(true)
8+
9+
if (isLicenseValid) return
10+
11+
return (
12+
<Alert
13+
description={
14+
<>
15+
{__(
16+
`Please ensure that your product subscription is valid. If needed, try deactivating and reactivating your license.`
17+
)}
18+
<br />
19+
{__(
20+
`For further assistance, feel free to reach out to our live support or email us at [email protected] .`
21+
)}
22+
</>
23+
}
24+
message={__('Your license is invalid, try reactivate')}
25+
showIcon
26+
type="error"
27+
/>
28+
)
29+
}

frontend/components/LicenseInvalidAlert.pro.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { __ } from '@common/helpers/i18nwrap'
2+
import LucideIcn from '@icons/LucideIcn'
23
import { Alert } from 'antd'
4+
import { Link } from 'react-router-dom'
35

46
import useCheckLicenseValidity from './SupportPage/data/useCheckLicenseValidity'
57

@@ -10,6 +12,12 @@ export default function LicenseInvalidAlert({ forceCheckLicense }: { forceCheckL
1012

1113
return (
1214
<Alert
15+
action={
16+
<Link className="mt-2" to="/support">
17+
{__('Manage license')}
18+
<LucideIcn name="move-up-right" size={12} style={{ transform: 'translateY(-4px)' }} />
19+
</Link>
20+
}
1321
description={__(
1422
`Please update your license to ensure you receive the latest security updates and bug fixes.
1523
Using an outdated or unofficial license may leave your system vulnerable to security breaches and data leaks.

0 commit comments

Comments
 (0)