Skip to content

Commit 6069bca

Browse files
authored
Small fix in todo list UI (#96)
* change ItemUI to UI as it's the main UI * change from list to vstack
1 parent 75a3186 commit 6069bca

File tree

1 file changed

+3
-3
lines changed
  • typescript/packages/lookslike-high-level/src/recipes

1 file changed

+3
-3
lines changed

typescript/packages/lookslike-high-level/src/recipes/todo-list.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ export const todoList = recipe("todo list", ({ title, items }) => {
2828

2929
return {
3030
UI: [
31-
list({}, [
31+
vstack({}, [
3232
commonInput({
3333
value: binding("title"),
3434
placeholder: "List title",
3535
"@common-input": binding("newTitle"),
3636
}),
37-
vstack({}, repeat("items", include({ content: binding("itemUI") }))),
37+
vstack({}, repeat("items", include({ content: binding("UI") }))),
3838
sendInput({
3939
name: "Add",
4040
placeholder: "New task",
@@ -62,7 +62,7 @@ export const todoTask = recipe("todo task", ({ title, done }) => {
6262
});
6363

6464
return {
65-
itemUI: state([
65+
UI: state([
6666
vstack({}, [
6767
todo(
6868
{

0 commit comments

Comments
 (0)