migrate older notification attributes

This commit is contained in:
Abhinav 2022-11-01 10:28:50 +05:30
parent e219a4de5b
commit 0eb05fceaa

View file

@ -452,23 +452,18 @@ export default function Uploader(props: Props) {
case CustomError.SUBSCRIPTION_EXPIRED:
notification = {
variant: 'danger',
message: constants.SUBSCRIPTION_EXPIRED,
action: {
text: constants.RENEW_NOW,
callback: () =>
billingService.redirectToCustomerPortal(),
},
subtext: constants.SUBSCRIPTION_EXPIRED,
message: constants.RENEW_NOW,
onClick: () => billingService.redirectToCustomerPortal(),
};
break;
case CustomError.STORAGE_QUOTA_EXCEEDED:
notification = {
variant: 'danger',
message: constants.STORAGE_QUOTA_EXCEEDED,
action: {
text: constants.UPGRADE_NOW,
callback: galleryContext.showPlanSelectorModal,
},
icon: <DiscFullIcon fontSize="large" />,
subtext: constants.STORAGE_QUOTA_EXCEEDED,
message: constants.UPGRADE_NOW,
onClick: () => galleryContext.showPlanSelectorModal,
startIcon: <DiscFullIcon fontSize="large" />,
};
break;
default: