@eventlook/sdk 1.5.0-beta.3 → 1.5.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventlook/sdk",
3
- "version": "1.5.0-beta.3",
3
+ "version": "1.5.0-beta.4",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -30,5 +30,3 @@ interface Packeta {
30
30
  interface PacketaOptions {
31
31
  language: string;
32
32
  }
33
-
34
- window._gopay = window._gopay || {};
@@ -1,11 +1,12 @@
1
- import React from 'react';
1
+ import React, { lazy, Suspense } from 'react';
2
2
  import { Box, Typography } from '@mui/material';
3
- import Lottie from 'lottie-react';
4
3
  import bankTransferAnimation from '../utils/data/lottie/bank-transfer.json';
5
4
  import { varBounce } from '@components/animate';
6
5
  import { m } from 'framer-motion';
7
6
  import useGlobal from '@hooks/useGlobal';
8
7
 
8
+ const Lottie = lazy(() => import('lottie-react'));
9
+
9
10
  const PaymentPending: React.FC = () => {
10
11
  const { t } = useGlobal();
11
12
 
@@ -17,7 +18,9 @@ const PaymentPending: React.FC = () => {
17
18
  </Typography>
18
19
  </m.div>
19
20
  <Box maxWidth={600} mx="auto">
20
- <Lottie animationData={bankTransferAnimation} />
21
+ <Suspense fallback={null}>
22
+ <Lottie animationData={bankTransferAnimation} />
23
+ </Suspense>
21
24
  </Box>
22
25
  </Box>
23
26
  );