Skip to content

Commit

Permalink
fix: small update
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirohonda committed Dec 16, 2024
1 parent 81d11a7 commit c80c4ef
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions apps/next-app/src/app/(dashboard)/todo/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ const TodoPage = async () => {
<h1>To Do</h1>
<div>This is a todo page</div>
<ul>
{todo?.map((list) => (
<TodoWithButton
key={list.id}
id={list.id}
content={list.content}
completed={list.completed}
/>
))}
{todo?.map(
(list: { id: string; content: string; completed: boolean }) => (
<TodoWithButton
key={list.id}
id={list.id}
content={list.content}
completed={list.completed}
/>
)
)}
</ul>
<form action={addNewTodo} className="flex flex-col gap-4 w-3/12">
<input
Expand Down

0 comments on commit c80c4ef

Please sign in to comment.