File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
apps/web/pages/payment-cancel Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments