update STORAGE_QUOTA_EXCEEDED_SUBSCRIPTION_INFO

This commit is contained in:
Abhinav 2022-09-12 19:07:28 +05:30
parent 51ec698aad
commit 488fd2fcd6
2 changed files with 9 additions and 3 deletions

View file

@ -50,7 +50,6 @@ export default function SubscriptionStatus({
<Typography
variant="body2"
color={'text.secondary'}
onClick={showPlanSelectorModal}
sx={{ cursor: 'pointer' }}>
{isSubscriptionActive(userDetails.subscription)
? isOnFreePlan(userDetails.subscription)
@ -62,7 +61,9 @@ export default function SubscriptionStatus({
userDetails.subscription?.expiryTime
)
: hasExceededStorageQuota(userDetails) &&
constants.STORAGE_QUOTA_EXCEEDED_SUBSCRIPTION_INFO
constants.STORAGE_QUOTA_EXCEEDED_SUBSCRIPTION_INFO(
showPlanSelectorModal
)
: constants.SUBSCRIPTION_EXPIRED_MESSAGE(
billingService.redirectToCustomerPortal
)}

View file

@ -284,7 +284,12 @@ const englishConstants = {
<>Your subscription will be cancelled on {dateString(expiryTime)}</>
),
STORAGE_QUOTA_EXCEEDED_SUBSCRIPTION_INFO: `You have exceeded your storage quota, please upgrade your plan.`,
STORAGE_QUOTA_EXCEEDED_SUBSCRIPTION_INFO: (onClick) => (
<>
You have exceeded your storage quota,, please{' '}
<LinkButton onClick={onClick}> upgrade </LinkButton>
</>
),
SUBSCRIPTION_PURCHASE_SUCCESS: (expiryTime) => (
<>
<p>We've received your payment</p>