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

This commit is contained in:
Julien Valverdé
2025-01-15 20:59:07 +01:00
parent 3813e63982
commit 8e6adc6b85
10 changed files with 134 additions and 22 deletions

View File

@@ -1,6 +1,9 @@
import { Effect, Stream } from "effect"
import { Flex } from "@radix-ui/themes"
import { Chunk, Effect, Stream } from "effect"
import { Reffuse } from "../reffuse"
import { TodosState } from "../services"
import { VNewTodo } from "./VNewTodo"
import { VTodo } from "./VTodo"
export function VTodos() {
@@ -16,6 +19,18 @@ export function VTodos() {
const [todos] = Reffuse.useRefState(todosRef)
return <></>
return (
<Flex direction="column" align="stretch" gap="3">
<VNewTodo />
{Chunk.map(todos, (todo, index) => (
<VTodo
key={todo.id}
index={index}
todo={todo}
/>
))}
</Flex>
)
}