Todo work
Some checks failed
Lint / lint (push) Failing after 10s

This commit is contained in:
Julien Valverdé
2025-01-15 21:46:13 +01:00
parent b46ba311ae
commit 53ed31be8d
4 changed files with 26 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import { Flex } from "@radix-ui/themes"
import { Box, Flex } from "@radix-ui/themes"
import { Chunk, Effect, Stream } from "effect"
import { Reffuse } from "../reffuse"
import { TodosState } from "../services"
@@ -20,15 +20,15 @@ export function VTodos() {
return (
<Flex direction="column" align="stretch" gap="3">
<VNewTodo />
<Flex direction="column" align="center" gap="3">
<Box width="500px">
<VNewTodo />
</Box>
{Chunk.map(todos, (todo, index) => (
<VTodo
key={todo.id}
index={index}
todo={todo}
/>
<Box key={todo.id} width="500px">
<VTodo index={index} todo={todo} />
</Box>
))}
</Flex>
)