From 7663fe7f9e76a52d97dd4db7cdb45a9b3ca827df Mon Sep 17 00:00:00 2001 From: "Abdallah M." <55534657+abdallahmz@users.noreply.github.com> Date: Wed, 29 Jul 2026 17:51:17 +0200 Subject: [PATCH] feat: modify get license page to be plan agnostic --- apps/ui/src/components/license-key/GetLicenseView.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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."}