Skip to content

Commit

Permalink
Get rid of deprecation warning for rx.input (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahAhianyo authored Jul 9, 2024
1 parent 46c8428 commit 13b71f1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions chat/components/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,16 @@ def action_bar() -> rx.Component:
rx.chakra.form(
rx.chakra.form_control(
rx.hstack(
rx.radix.text_field.root(
rx.radix.text_field.input(
placeholder="Type something...",
id="question",
width=["15em", "20em", "45em", "50em", "50em", "50em"],
),
rx.radix.text_field.slot(
rx.input(
rx.input.slot(
rx.tooltip(
rx.icon("info", size=18),
content="Enter a question to get a response.",
)
),
placeholder="Type something...",
id="question",
width=["15em", "20em", "45em", "50em", "50em", "50em"],
),
rx.button(
rx.cond(
Expand Down

0 comments on commit 13b71f1

Please sign in to comment.