Skip to content

Commit 0753441

Browse files
feat: Added the payment-cancel page
1 parent d0fc7ef commit 0753441

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { AppLayout } from '@layouts/AppLayout';
2+
import { modals } from '@mantine/modals';
3+
import { CONSTANTS } from '@config';
4+
import { Stack } from '@mantine/core';
5+
import { useEffect } from 'react';
6+
import { PaymentSuccessConfirmationModal } from '@components/ConfirmationModal';
7+
8+
export default function PaymentCancel() {
9+
useEffect(() => {
10+
modals.open({
11+
title: 'Subscription Status',
12+
children: (
13+
<Stack spacing="lg">
14+
<PaymentSuccessConfirmationModal paymentStatus={CONSTANTS.PAYMENT_FAILED_CODE as 'failed'} />
15+
</Stack>
16+
),
17+
});
18+
}, []);
19+
20+
return null;
21+
}
22+
23+
export async function getServerSideProps() {
24+
return {
25+
props: {
26+
title: 'Payment Cancel',
27+
},
28+
};
29+
}
30+
31+
PaymentCancel.Layout = AppLayout;

0 commit comments

Comments
 (0)