Skip to content

Commit

Permalink
regression: CE cards and small fixes (#30817)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocostadev authored Oct 31, 2023
1 parent a31d533 commit bd9d2b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions apps/meteor/client/views/admin/subscription/SubscriptionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,22 @@ const SubscriptionPage = () => {
</Grid.Item>
)}

{limits?.marketplaceApps !== undefined && (
<Grid.Item lg={4} xs={4} p={8}>
<AppsUsageCard privateAppsLimit={limits?.privateApps} marketplaceAppsLimit={limits.marketplaceApps} />
</Grid.Item>
)}
{!license && (
<>
{limits?.marketplaceApps !== undefined && (
<Grid.Item lg={4} xs={4} p={8}>
<AppsUsageCard privateAppsLimit={limits?.privateApps} marketplaceAppsLimit={limits.marketplaceApps} />
</Grid.Item>
)}

<Grid.Item lg={4} xs={4} p={8}>
<ActiveSessionsCard />
</Grid.Item>
<Grid.Item lg={4} xs={4} p={8}>
<ActiveSessionsPeakCard />
</Grid.Item>
<Grid.Item lg={4} xs={4} p={8}>
<ActiveSessionsCard />
</Grid.Item>
<Grid.Item lg={4} xs={4} p={8}>
<ActiveSessionsPeakCard />
</Grid.Item>
</>
)}
</Grid>
<UpgradeToGetMore activeModules={activeModules} isEnterprise={isEnterprise} />
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const PieGraphCard = ({ pieGraph, card }: PieGraphCardProps): ReactElement => {

return (
<FeatureUsageCard card={card}>
<UsagePieGraph label={`${quantityAvailable} ${t('Available')}`} used={pieGraph.used} total={pieGraph.total} color={color} />)
<UsagePieGraph label={`${quantityAvailable} ${t('Available')}`} used={pieGraph.used} total={pieGraph.total} color={color} />
</FeatureUsageCard>
);
};
Expand Down

0 comments on commit bd9d2b7

Please sign in to comment.