diff --git a/apps/ui/src/components/license-key/GetLicenseView.tsx b/apps/ui/src/components/license-key/GetLicenseView.tsx index 460f803..cf1a5b6 100644 --- a/apps/ui/src/components/license-key/GetLicenseView.tsx +++ b/apps/ui/src/components/license-key/GetLicenseView.tsx @@ -25,6 +25,7 @@ interface GetLicenseViewProps { export function GetLicenseView({ token }: GetLicenseViewProps) { const [isExpanded, setIsExpanded] = useState(false) const [licenseKey, setLicenseKey] = useState("") + const [planDisplayName, setPlanDisplayName] = useState("") const [error, setError] = useState( token ? null : "ERR_TOKEN_NOT_FOUND" ) @@ -47,6 +48,7 @@ export function GetLicenseView({ token }: GetLicenseViewProps) { } setLicenseKey(result.license) + setPlanDisplayName(result.planDisplayName ?? "") } catch (fetchError) { console.error("Error while fetching license key:", fetchError) setError("DEFAULT") @@ -86,10 +88,12 @@ export function GetLicenseView({ token }: GetLicenseViewProps) {
- Thank you for choosing the Strapi Growth Plan! + License access - Please find your license below. + {planDisplayName + ? `Your ${planDisplayName} license is ready.` + : "Your Strapi license is ready."}