Skip to content

Commit

Permalink
feat: react-lazy-observer 패키지 대체
Browse files Browse the repository at this point in the history
  • Loading branch information
KimKyuHoi committed Dec 5, 2024
1 parent 27513b5 commit 6004dbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 54 deletions.
52 changes: 0 additions & 52 deletions src/components/common/View/LazyLoad.tsx

This file was deleted.

5 changes: 3 additions & 2 deletions src/pages/team/components/content/TeamContent.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import styled from '@emotion/styled';
import { useState, lazy } from 'react';
import { useMediaQuery } from 'react-responsive';
import { LazyLoad } from 'react-lazy-observer';

import { TeamList } from '@gdg/apis/hooks/team/useGetTeamList';
import LazyLoad from '@gdg/components/common/View/LazyLoad';
import {
TeamMember,
TeamCalendar,
TeamTitle,
TeamTitleMobile,
} from '@gdg/pages/team/components';
import { LoadingView } from '@gdg/components/common/View/LoadingView';
const TeamBlogList = lazy(() => import('../blog/TeamBlogList'));

const TeamContent = ({ data }: { data: TeamList[] }) => {
Expand Down Expand Up @@ -42,7 +43,7 @@ const TeamContent = ({ data }: { data: TeamList[] }) => {

<TeamCalendar selectedTeamName={selectedTeamName} />

<LazyLoad>
<LazyLoad fallback={<LoadingView />}>
<TeamBlogList selectedTeamName={selectedTeamName} />
</LazyLoad>
</TeamContainer>
Expand Down

0 comments on commit 6004dbd

Please sign in to comment.