open customer portal for renewal
This commit is contained in:
parent
182a266074
commit
8b79f39c31
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue