Skip to content

Commit

Permalink
refactor: map function parameter destructing
Browse files Browse the repository at this point in the history
  • Loading branch information
2yunseong committed Sep 18, 2024
1 parent 2115e1b commit 40930e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/components/common/board/BoardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const BoardTable = ({ boardRows, handleModalOpen }: BoardTableProps) => {
<Txt>검색결과가 없습니다.</Txt>
) : (
<>
{boardRows.map((item) => (
{boardRows.map(({ id, title, subElements, passState }) => (
<BoardCell
key={item.id}
title={item.title}
subElements={item.subElements}
passState={item.passState}
onClick={handleModalOpen(item.id)}
key={id}
title={title}
subElements={subElements}
passState={passState}
onClick={handleModalOpen(id)}
/>
))}
</>
Expand Down

0 comments on commit 40930e1

Please sign in to comment.