We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51447d1 commit 5ff33cdCopy full SHA for 5ff33cd
src/component/TodoList.tsx
@@ -1,4 +1,5 @@
1
import TodoCard from "./TodoCard";
2
+import TodoEmpty from "./TodoEmpty";
3
4
export default function TodoList() {
5
@@ -9,6 +10,10 @@ export default function TodoList() {
9
10
{ id: 4, content: "프로젝트 회의 준비" },
11
];
12
13
+ if (todos.length === 0) {
14
+ return <TodoEmpty />;
15
+ }
16
+
17
return (
18
<ul className="flex flex-col items-start gap-4 self-stretch">
19
{todos.map((todo) => (
0 commit comments