Fix package limits in tenant overview
This commit is contained in:
@@ -505,9 +505,6 @@ function PackageSummarySheet({
|
||||
const { t } = useTranslation('management');
|
||||
const { textStrong, muted, border, surface, accentSoft, primary } = useAdminTheme();
|
||||
const text = textStrong;
|
||||
const maxPhotos = (limits as Record<string, number | null> | null)?.max_photos ?? null;
|
||||
const maxGuests = (limits as Record<string, number | null> | null)?.max_guests ?? null;
|
||||
const galleryDays = (limits as Record<string, number | null> | null)?.gallery_days ?? null;
|
||||
const resolvedFeatures = collectPackageFeatures({
|
||||
features,
|
||||
package_limits: limits,
|
||||
@@ -532,9 +529,6 @@ function PackageSummarySheet({
|
||||
</Text>
|
||||
</YStack>
|
||||
<YStack space="$2" marginTop="$2">
|
||||
<SummaryRow label={t('mobileDashboard.packageSummary.limitPhotos', 'Photos')} value={formatPackageLimit(maxPhotos, t)} />
|
||||
<SummaryRow label={t('mobileDashboard.packageSummary.limitGuests', 'Guests')} value={formatPackageLimit(maxGuests, t)} />
|
||||
<SummaryRow label={t('mobileDashboard.packageSummary.limitDays', 'Gallery days')} value={formatPackageLimit(galleryDays, t)} />
|
||||
<SummaryRow
|
||||
label={t('mobileDashboard.packageSummary.remaining', 'Remaining events')}
|
||||
value={formatPackageLimit(remainingEvents, t)}
|
||||
|
||||
Reference in New Issue
Block a user