Skip to content

Commit 58a1d6c

Browse files
committed
use panelmessage
1 parent 4fe426f commit 58a1d6c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

apps/array/src/renderer/features/task-detail/components/TodoListPanel.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { PanelMessage } from "@components/ui/PanelMessage";
12
import { useTaskExecutionStore } from "@features/task-detail/stores/taskExecutionStore";
23
import { Box, Checkbox, Flex, Text } from "@radix-ui/themes";
34
import { useEffect } from "react";
@@ -24,13 +25,7 @@ export function TodoListPanel({ taskId }: TodoListPanelProps) {
2425
const todos = taskState.todos?.items || [];
2526

2627
if (todos.length === 0) {
27-
return (
28-
<Box height="100%" overflowY="auto" p="4">
29-
<Text size="2" color="gray">
30-
No todos yet
31-
</Text>
32-
</Box>
33-
);
28+
return <PanelMessage>No todos yet</PanelMessage>;
3429
}
3530

3631
return (

0 commit comments

Comments
 (0)