File tree Expand file tree Collapse file tree 2 files changed +11181
-15350
lines changed
apps/web/components/ConfirmationModal Expand file tree Collapse file tree 2 files changed +11181
-15350
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import Lottie from 'lottie-react ' ;
2
+ import dynamic from 'next/dynamic ' ;
3
3
import { modals } from '@mantine/modals' ;
4
4
import { colors , CONSTANTS } from '@config' ;
5
5
import { Stack , Text } from '@mantine/core' ;
6
6
7
+ import { Button } from '@ui/button' ;
7
8
import FailedAnimationData from './failed-animation-data.json' ;
8
9
import SuccessAnimationData from './success-animation-data.json' ;
9
- import { Button } from '@ui/button' ;
10
10
11
11
interface ConfirmationModalProps {
12
12
status : string ;
13
13
}
14
14
15
+ const Lottie = dynamic ( ( ) => import ( 'lottie-react' ) , { ssr : false } ) ;
16
+
15
17
export const ConfirmationModal = ( { status } : ConfirmationModalProps ) => {
16
18
const title =
17
19
status === CONSTANTS . PAYMENT_SUCCCESS_CODE
You can’t perform that action at this time.
0 commit comments