Skip to content

Commit

Permalink
feat: 로티 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
a-honey committed Feb 27, 2024
1 parent ac11993 commit f041cd3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 324 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"eslint-plugin-react": "^7.33.2",
"framer-motion": "^11.0.3",
"lodash": "^4.17.21",
"lottie-react": "^2.4.0",
"next": "14.0.3",
"react": "^18",
"react-dom": "^18",
Expand Down
317 changes: 0 additions & 317 deletions src/assets/lottie.json

This file was deleted.

Binary file added src/assets/lottie.webp
Binary file not shown.
9 changes: 3 additions & 6 deletions src/components/atoms/Lottie.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
// import Lottie from 'lottie-react';
// import animationData from './../../assets/lottie.json';
import animationData from './../../assets/lottie.webp';
import Image from 'next/image';

const LottieComponent = () => {
return (
// <Lottie animationData={animationData} style={{ width: 167, height: 156 }} />
<div>로딩중</div>
);
return <Image src={animationData} alt="로딩중" width={167} height={156} />;
};

export default LottieComponent;

0 comments on commit f041cd3

Please sign in to comment.