chore(frontend): remove @mui/styles, replace react-lottie with lottie-react and remove legacy-peer-deps in Dockerfile
This commit is contained in:
parent
5b4855a5f5
commit
a44a85be73
|
|
@ -2,7 +2,7 @@
|
|||
FROM node:18-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN npm install --silent --legacy-peer-deps
|
||||
RUN npm install --silent
|
||||
COPY . ./
|
||||
ENV NODE_OPTIONS=--openssl-legacy-provider
|
||||
RUN npm run build
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
"dependencies": {
|
||||
"@mui/material": "^5.14.0",
|
||||
"@mui/icons-material": "^5.14.0",
|
||||
"@mui/styles": "^5.14.0",
|
||||
"@emotion/react": "^11.11.0",
|
||||
"@emotion/styled": "^11.11.0",
|
||||
"@testing-library/jest-dom": "^5.11.9",
|
||||
|
|
@ -16,8 +15,8 @@
|
|||
"react-dom": "^18.3.1",
|
||||
"react-code-blocks": "^0.0.8",
|
||||
"react-dropzone": "^11.3.1",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-lottie": "^1.2.3",
|
||||
"react-helmet": "^6.1.0",
|
||||
"lottie-react": "^2.4.0",
|
||||
"react-router-dom": "^6.28.0",
|
||||
"react-scripts": "5.0.1",
|
||||
"sass": "^1.32.8",
|
||||
|
|
|
|||
|
|
@ -1,26 +1,17 @@
|
|||
import '../../../App.css'
|
||||
|
||||
import Lottie from 'react-lottie';
|
||||
import Lottie from 'lottie-react';
|
||||
import animationData from './animation.json';
|
||||
|
||||
export default function Loading() {
|
||||
const defaultOptions = {
|
||||
loop: true,
|
||||
autoplay: true,
|
||||
animationData: animationData,
|
||||
rendererSettings: {
|
||||
preserveAspectRatio: "xMidYMid slice"
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
return (
|
||||
<div className="loading">
|
||||
<Lottie
|
||||
options={defaultOptions}
|
||||
height={400}
|
||||
width={400}
|
||||
isClickToPauseDisabled={true}
|
||||
animationData={animationData}
|
||||
loop={true}
|
||||
autoplay={true}
|
||||
style={{ width: 400, height: 400 }}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user