open customer portal for renewal

This commit is contained in:
Abhinav 2022-09-12 18:47:29 +05:30
parent 182a266074
commit 8b79f39c31
2 changed files with 4 additions and 2 deletions

View file

@ -13,6 +13,7 @@ import Box from '@mui/material/Box';
import { UserDetails } from 'types/user';
import constants from 'utils/strings/constants';
import { Typography } from '@mui/material';
import billingService from 'services/billingService';
export default function SubscriptionStatus({
userDetails,
@ -63,7 +64,7 @@ export default function SubscriptionStatus({
: hasExceededStorageQuota(userDetails) &&
constants.STORAGE_QUOTA_EXCEEDED_SUBSCRIPTION_INFO
: constants.SUBSCRIPTION_EXPIRED_MESSAGE(
showPlanSelectorModal
billingService.redirectToCustomerPortal
)}
</Typography>
</Box>

View file

@ -48,6 +48,7 @@ import {
groupFilesBasedOnParentFolder,
} from 'utils/upload';
import { getUserOwnedCollections } from 'utils/collection';
import billingService from 'services/billingService';
const FIRST_ALBUM_NAME = 'My First Album';
@ -451,7 +452,7 @@ export default function Uploader(props: Props) {
message: constants.SUBSCRIPTION_EXPIRED,
action: {
text: constants.UPGRADE_NOW,
callback: galleryContext.showPlanSelectorModal,
callback: billingService.redirectToCustomerPortal,
},
};
break;