Skip to content

Commit

Permalink
fixed animations
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-Web3 committed Apr 23, 2023
1 parent fc10229 commit 4e09a0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/shared/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ const Body: React.FC<{
className="body"
>
{!currentBoard.status.every(el => !el.tasks.length) && (
<div className="body__boards">
<motion.div layout className="body__boards">
{currentBoard.status
.filter(el => el.tasks.length)
.map(el => (
<Board key={nanoid()} {...el} />
))}
<div className="body__add-board">
<motion.div layout className="body__add-board">
<p>+ new column</p>
</div>
</div>
</motion.div>
</motion.div>
)}
<div className="empty">
<p className="empty__message">
Expand Down

0 comments on commit 4e09a0c

Please sign in to comment.