diff --git a/assets/apps/dashboard/src/Components/Content/Sidebar/LicenseCard.js b/assets/apps/dashboard/src/Components/Content/Sidebar/LicenseCard.js index 91f9c3f202..e60229e9cf 100644 --- a/assets/apps/dashboard/src/Components/Content/Sidebar/LicenseCard.js +++ b/assets/apps/dashboard/src/Components/Content/Sidebar/LicenseCard.js @@ -25,7 +25,7 @@ const LicenseCard = () => { const [toast, setToast] = useState(''); const [toastType, setToastType] = useState('success'); - const { valid, expiration } = license; + const { valid, expiration, tier } = license; const { whiteLabel, strings } = neveDash; const { licenseCardHeading, licenseCardDescription } = strings; const isValid = 'valid' === valid; @@ -70,6 +70,17 @@ const LicenseCard = () => { return statusLabelMap[status]; }; + const getPlanLabel = () => { + const planLabel = { + 1: __('Personal', 'neve'), + 2: __('Business', 'neve'), + 3: __('Agency', 'neve'), + }; + + return planLabel[tier] || null; + }; + const planLabel = getPlanLabel(); + return (
@@ -124,6 +135,11 @@ const LicenseCard = () => { )} {isOrWasValid && (
+ {planLabel && ( +

+ {planLabel} +

+ )}