Update partner packages, copy, and demo switcher
This commit is contained in:
@@ -354,6 +354,7 @@ export default function MobileDashboardPage() {
|
||||
navigate(adminPath('/mobile/events/new'));
|
||||
}}
|
||||
packageName={activePackage.package_name ?? t('mobileDashboard.packageSummary.fallbackTitle', 'Package summary')}
|
||||
packageType={activePackage.package_type ?? null}
|
||||
remainingEvents={remainingEvents}
|
||||
purchasedAt={activePackage.purchased_at}
|
||||
expiresAt={activePackage.expires_at}
|
||||
@@ -497,6 +498,7 @@ function PackageSummarySheet({
|
||||
onClose,
|
||||
onContinue,
|
||||
packageName,
|
||||
packageType,
|
||||
remainingEvents,
|
||||
purchasedAt,
|
||||
expiresAt,
|
||||
@@ -508,6 +510,7 @@ function PackageSummarySheet({
|
||||
onClose: () => void;
|
||||
onContinue: () => void;
|
||||
packageName: string;
|
||||
packageType: string | null;
|
||||
remainingEvents: number | null | undefined;
|
||||
purchasedAt: string | null | undefined;
|
||||
expiresAt: string | null | undefined;
|
||||
@@ -523,8 +526,9 @@ function PackageSummarySheet({
|
||||
package_limits: limits,
|
||||
branding_allowed: (limits as any)?.branding_allowed ?? null,
|
||||
watermark_allowed: (limits as any)?.watermark_allowed ?? null,
|
||||
package_type: packageType,
|
||||
} as any);
|
||||
const limitEntries = getPackageLimitEntries(limits, t, { remainingEvents });
|
||||
const limitEntries = getPackageLimitEntries(limits, t, { remainingEvents }, { packageType });
|
||||
const hasFeatures = resolvedFeatures.length > 0;
|
||||
|
||||
const formatDate = (value?: string | null) => formatEventDate(value, locale) ?? t('mobileDashboard.packageSummary.unknown', 'Unknown');
|
||||
|
||||
Reference in New Issue
Block a user