-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs update code success #900
base: master
Are you sure you want to change the base?
Conversation
dense, set_dense = solara.use_state(False) | ||
outlined, set_outlined = solara.use_state(True) | ||
text, set_text = solara.use_state(True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here.
cded5b2
to
32af76f
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
8735a83
to
2d0e66c
Compare
for more information, see https://pre-commit.ci
text=text, | ||
dense=dense, | ||
outlined=outlined, | ||
icon=icon, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here
text=text, | |
dense=dense, | |
outlined=outlined, | |
icon=icon, | |
text=text.value, | |
dense=dense.value, | |
outlined=outlined.value, | |
icon=icon.value, |
solara.Checkbox(label="Show as text", value=text) | ||
solara.Checkbox(label="Show outlined", value=outlined) | ||
solara.Success( | ||
f"This is solara.Success(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the .value
s here instead of the reactives
f"This is solara.Success(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", | |
f"This is solara.Success(label='...', text={text.value}, dense={dense.value}, outlined={outlined.value}, icon={icon.value})", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I already fixed it. If there is any issues, please let me know.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good other than the unrelated changes. I can clean those up unless you specifically want to @lizzy985.
No description provided.