0.1.0 #1

Merged
Thilawyn merged 81 commits from next into master 2025-07-17 21:17:57 +02:00
Showing only changes of commit cc67e2d93f - Show all commits

View File

@@ -57,6 +57,7 @@ export const Todo = Component.make(function* Todo(props: TodoProps) {
{props._tag === "edit" &&
<Flex direction="column" justify="center" align="center" gap="1">
<IconButton
disabled={props.index <= 0}
onClick={() => Runtime.runSync(runtime)(
Ref.updateSome(state.ref, todos => Option.gen(function*() {
if (props.index <= 0)
@@ -75,6 +76,7 @@ export const Todo = Component.make(function* Todo(props: TodoProps) {
</IconButton>
<IconButton
disabled={props.index >= todosSize}
onClick={() => Runtime.runSync(runtime)(
Ref.updateSome(state.ref, todos => Option.gen(function*() {
if (props.index >= Chunk.size(todos))