Skip to content

Commit

Permalink
fix: lazy 로딩 로직 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
NaveOWO committed Sep 25, 2023
1 parent 47176ad commit a31339f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 71 deletions.
26 changes: 0 additions & 26 deletions client/src/components/_common/lazyImage/lazyImage.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import LazyImage from '@/components/_common/lazyImage/lazyImage';
import { NodeType } from '@/myTypes/roadmap/internal';
import * as S from './roadmapNodeList.styles';

Expand All @@ -23,7 +22,7 @@ const RoadmapNodeList = ({ roadmapTitle, nodeInfo }: RoadmapNodeListProps) => {
{node.imageUrls.map((nodeImage) => {
return (
<S.ImageWrapper>
<S.LazyImageImg src={nodeImage} />
<img src={nodeImage} alt='노드 이미지' loading='lazy' />
</S.ImageWrapper>
);
})}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import LazyImage from '@/components/_common/lazyImage/lazyImage';
import { styled } from 'styled-components';

export const RoadmapNodeList = styled.div`
Expand Down Expand Up @@ -90,8 +89,3 @@ export const NodeImage = styled.img`
height: 20rem;
object-fit: cover;
`;

export const LazyImageImg = styled(LazyImage)`
height: 30rem;
object-fit: cover;
`;
37 changes: 0 additions & 37 deletions client/src/hooks/_common/useIntersectionObserver.ts

This file was deleted.

0 comments on commit a31339f

Please sign in to comment.