File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed
Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import Title from 'antd/es/typography/Title'
77import { useEffect , useRef } from 'react'
88import { useSearchParam } from 'react-use'
99
10- import LicenseInvalidAlert from './LicenseInvalidAlert .pro'
10+ import LicenseActivationNotice from './LicenseActivationNotice .pro'
1111import CheckNewUpdate from './SupportPage/CheckNewUpdate'
1212import 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
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11import { __ } from '@common/helpers/i18nwrap'
2+ import LucideIcn from '@icons/LucideIcn'
23import { Alert } from 'antd'
4+ import { Link } from 'react-router-dom'
35
46import 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.
You can’t perform that action at this time.
0 commit comments