Skip to content

Commit

Permalink
refactor :: 코드 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Sep 8, 2024
1 parent bb129ba commit a505a0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/Team/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export const Team = () => {
<VStack gap={14}>
<TeamListWrapper
data={teamList}
isLoading={teamList === undefined}
emptyFunction={() => {
return filteredTeamList.length === 0;
}}
isLoading={teamList === undefined}
renderComponent={
<Render>
{filteredTeamList.slice(selected * 3, selected * 3 + 3).map((element: any, index: number) => (
Expand All @@ -86,18 +86,18 @@ export const Team = () => {
))}
</Render>
}
emptyComponent={
<Empty>
<TipBox>검색 결과가 없거나, 속한 팀이 없습니다!</TipBox>
</Empty>
}
loadingComponent={
<Loading>
{Array.from({ length: 3 }).map((_, i) => (
<Skeleton radius={6} height={134} key={i} />
))}
</Loading>
}
emptyComponent={
<Empty>
<TipBox>검색 결과가 없거나, 속한 팀이 없습니다!</TipBox>
</Empty>
}
/>
</VStack>
</LimitBox>
Expand Down

0 comments on commit a505a0e

Please sign in to comment.