Skip to content

Commit

Permalink
Remove: 필요없는 코드 삭제 #65
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyeeeah committed Oct 23, 2023
1 parent 1184e63 commit 58f2e6c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
17 changes: 7 additions & 10 deletions components/pages/mypage/MyPageMain/BookmarkedBoardsList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@ export default function BookmarkedBoardsList() {
}
return (
<div className="grid w-full gap-5 tablet:grid-cols-2 tablet:mt-4">
{data &&
data?.pages?.map((page) =>
page.content.map((board) => (
<div key={board.id} className="w-full">
<Link key={board.id} href={`/board/${board.id}`}>
<MyBoardCard board={board} />
</Link>
</div>
)),
)}
{data?.pages?.map((board) => (
<div key={board.id} className="w-full">
<Link key={board.id} href={`/board/${board.id}`}>
<MyBoardCard board={board} />
</Link>
</div>
))}
<Observer>
<div>로딩중...</div>
</Observer>
Expand Down
15 changes: 7 additions & 8 deletions components/pages/mypage/MyPageMain/MyBoardsList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ export default function MyBoardsList() {
}
return (
<div className="grid w-full gap-5 tablet:grid-cols-2 tablet:mt-4">
{myBoards &&
myBoards?.pages?.map((board) => (
<div key={board.id} className="w-full">
<Link key={board.id} href={`/board/${board.id}`}>
<MyBoardCard board={board} />
</Link>
</div>
))}
{myBoards?.pages?.map((board) => (
<div key={board.id} className="w-full">
<Link key={board.id} href={`/board/${board.id}`}>
<MyBoardCard board={board} />
</Link>
</div>
))}
<Observer>
<div>로딩중...</div>
</Observer>
Expand Down
4 changes: 3 additions & 1 deletion components/pages/mypage/MyPageMain/MyChatRoom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default function MyChatRoom() {
}
return (
<div className="grid w-full gap-5 tablet:grid-cols-2 tablet:mt-4 place-items-center">
{data && data.map((list) => <ImageChatCard {...list} />)}
{data.map((list) => (
<ImageChatCard {...list} />
))}
</div>
);
}

0 comments on commit 58f2e6c

Please sign in to comment.