From eb120c116e0f45a25069b723f983b435413c505f Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 30 Dec 2024 16:39:14 -0300 Subject: [PATCH] feat: enhance UX with clickable items and simplified structure (#5387) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔧 (dropdownComponent/index.tsx): refactor dropdownComponent to improve code readability and remove unnecessary ShadTooltip component --- .../core/dropdownComponent/index.tsx | 46 +++++++++---------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/src/frontend/src/components/core/dropdownComponent/index.tsx b/src/frontend/src/components/core/dropdownComponent/index.tsx index 744a07bfc..9302e9c62 100644 --- a/src/frontend/src/components/core/dropdownComponent/index.tsx +++ b/src/frontend/src/components/core/dropdownComponent/index.tsx @@ -131,31 +131,29 @@ export default function Dropdown({ No values found. {filteredOptions?.map((option, index) => ( - -
- { - onSelect(currentValue); - setOpen(false); - }} - className="items-center overflow-hidden truncate" - data-testid={`${option}-${index}-option`} - > - {customValue === option && ( - Text:  +
+ { + onSelect(currentValue); + setOpen(false); + }} + className="items-center overflow-hidden truncate hover:cursor-pointer" + data-testid={`${option}-${index}-option`} + > + {customValue === option && ( + Text:  + )} + {option} + {option} - - -
- + /> +
+
))}