Skip to content

Commit

Permalink
chore: Blank 외부 렌더링 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
a-honey committed Jan 14, 2025
1 parent 9b2ede5 commit 48b53bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
15 changes: 5 additions & 10 deletions src/pages/query/List.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Blank from "../../components/fallback/Blank";
import ErrorFallback from "../../components/fallback/ErrorFallback";
import { Link } from "react-router-dom";
import List from "../../components/List";
Expand Down Expand Up @@ -60,15 +59,11 @@ const QueryListContent = () => {
]}
row={5}
/>
{data.inquiries.length === 0 ? (
<Blank />
) : (
<List.RowContainer row={10}>
{data.inquiries.map((query) => (
<QueryListItem key={query.id} {...query} />
))}
</List.RowContainer>
)}
<List.RowContainer row={10}>
{data.inquiries.map((query) => (
<QueryListItem key={query.id} {...query} />
))}
</List.RowContainer>
<Pagination
totalPages={data.totalPage}
currentPage={currentPage}
Expand Down
8 changes: 3 additions & 5 deletions src/pages/user/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ const UserListContent = () => {
</List.Header>
<List.ColumnContainer headers={userListColumns} row={5} />
<List.RowContainer row={10}>
{!data.users || data.users.length === 0 ? (
<Blank />
) : (
data.users.map((user) => <UserListItem key={user.id} {...user} />)
)}
{data.users.map((user) => (
<UserListItem key={user.id} {...user} />
))}
</List.RowContainer>
<Pagination
totalPages={data.totalPage}
Expand Down

0 comments on commit 48b53bf

Please sign in to comment.