migrate older notification attributes
This commit is contained in:
parent
e219a4de5b
commit
0eb05fceaa
|
@ -452,23 +452,18 @@ export default function Uploader(props: Props) {
|
||||||
case CustomError.SUBSCRIPTION_EXPIRED:
|
case CustomError.SUBSCRIPTION_EXPIRED:
|
||||||
notification = {
|
notification = {
|
||||||
variant: 'danger',
|
variant: 'danger',
|
||||||
message: constants.SUBSCRIPTION_EXPIRED,
|
subtext: constants.SUBSCRIPTION_EXPIRED,
|
||||||
action: {
|
message: constants.RENEW_NOW,
|
||||||
text: constants.RENEW_NOW,
|
onClick: () => billingService.redirectToCustomerPortal(),
|
||||||
callback: () =>
|
|
||||||
billingService.redirectToCustomerPortal(),
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case CustomError.STORAGE_QUOTA_EXCEEDED:
|
case CustomError.STORAGE_QUOTA_EXCEEDED:
|
||||||
notification = {
|
notification = {
|
||||||
variant: 'danger',
|
variant: 'danger',
|
||||||
message: constants.STORAGE_QUOTA_EXCEEDED,
|
subtext: constants.STORAGE_QUOTA_EXCEEDED,
|
||||||
action: {
|
message: constants.UPGRADE_NOW,
|
||||||
text: constants.UPGRADE_NOW,
|
onClick: () => galleryContext.showPlanSelectorModal,
|
||||||
callback: galleryContext.showPlanSelectorModal,
|
startIcon: <DiscFullIcon fontSize="large" />,
|
||||||
},
|
|
||||||
icon: <DiscFullIcon fontSize="large" />,
|
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue