zhejiushizhuce il y a 2 ans
Parent
commit
622c853c94
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/components/LoadingScreen.jsx

+ 4 - 2
src/components/LoadingScreen.jsx

@@ -5,7 +5,8 @@ import Spring from '@components/Spring';
 // assets
 // import ball from '@assets/logo.json';
 import logo from '@assets/logo.json';
-import {useEffect, useRef} from "react";
+import React, {useEffect, useRef} from "react";
+import {CircularProgress} from "@mui/material";
 
 const LoadingScreen = ({...props}) => {
     const loadRef = useRef(null);
@@ -19,7 +20,8 @@ const LoadingScreen = ({...props}) => {
     return (
         <Spring {...props} className="d-flex align-items-center justify-content-center flex-1 w-100 h-100">
             {/*<Lottie animationData={ball} />*/}
-            <Lottie animationData={logo} lottieRef={loadRef}/>
+            {/*<Lottie animationData={logo} lottieRef={loadRef}/>*/}
+            <CircularProgress color="success" size={40} thickness={5}/>
         </Spring>
     )
 }