Skip to content

Commit 361357b

Browse files
fix: build (#962)
2 parents 851268b + b787729 commit 361357b

File tree

2 files changed

+11181
-15350
lines changed

2 files changed

+11181
-15350
lines changed

apps/web/components/ConfirmationModal/ConfirmationModal.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import React from 'react';
2-
import Lottie from 'lottie-react';
2+
import dynamic from 'next/dynamic';
33
import { modals } from '@mantine/modals';
44
import { colors, CONSTANTS } from '@config';
55
import { Stack, Text } from '@mantine/core';
66

7+
import { Button } from '@ui/button';
78
import FailedAnimationData from './failed-animation-data.json';
89
import SuccessAnimationData from './success-animation-data.json';
9-
import { Button } from '@ui/button';
1010

1111
interface ConfirmationModalProps {
1212
status: string;
1313
}
1414

15+
const Lottie = dynamic(() => import('lottie-react'), { ssr: false });
16+
1517
export const ConfirmationModal = ({ status }: ConfirmationModalProps) => {
1618
const title =
1719
status === CONSTANTS.PAYMENT_SUCCCESS_CODE

0 commit comments

Comments
 (0)