From 13b71f128b362d076f0bbaf1a01ffb1dec501853 Mon Sep 17 00:00:00 2001 From: Elijah Ahianyo Date: Mon, 8 Jul 2024 19:17:10 -0700 Subject: [PATCH] Get rid of deprecation warning for rx.input (#47) --- chat/components/chat.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/chat/components/chat.py b/chat/components/chat.py index 941b93c..c60b4f0 100644 --- a/chat/components/chat.py +++ b/chat/components/chat.py @@ -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(