Skip to content

Commit fb45e7e

Browse files
authored
Update good_conditional_todo_list.py (#745)
* Update good_conditional_todo_list.py The checkmark was on the wrong list items compared to the more verbose example. * Update main.py fixed typo. It was rendering `1 or 10` instead of `1 of 10`
1 parent f25970d commit fb45e7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/source/guides/adding-interactivity/components-with-state/_examples/adding_state_variable/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def handle_click(event):
2727
return html.div(
2828
html.button({"onClick": handle_click}, "Next"),
2929
html.h2(name, " by ", artist),
30-
html.p(f"({bounded_index + 1} or {len(sculpture_data)})"),
30+
html.p(f"({bounded_index + 1} of {len(sculpture_data)})"),
3131
html.img({"src": url, "alt": alt, "style": {"height": "200px"}}),
3232
html.p(description),
3333
)

docs/source/guides/creating-interfaces/your-first-components/_examples/good_conditional_todo_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@component
55
def Item(name, done):
6-
return html.li(name, "" if done else "")
6+
return html.li(name, "" if done else "")
77

88

99
@component

0 commit comments

Comments
 (0)