diff --git a/apps/client/src/widgets/react/Dropdown.tsx b/apps/client/src/widgets/react/Dropdown.tsx
index 91403b622..08cdbfed0 100644
--- a/apps/client/src/widgets/react/Dropdown.tsx
+++ b/apps/client/src/widgets/react/Dropdown.tsx
@@ -80,13 +80,13 @@ export default function Dropdown({ className, buttonClassName, isStatic, childre
-
+
)
}
\ No newline at end of file
diff --git a/apps/client/src/widgets/react/FormList.tsx b/apps/client/src/widgets/react/FormList.tsx
index fb5318631..8991dea00 100644
--- a/apps/client/src/widgets/react/FormList.tsx
+++ b/apps/client/src/widgets/react/FormList.tsx
@@ -97,8 +97,8 @@ const TOOLTIP_CONFIG: Partial = {
fallbackPlacements: [ "right" ]
}
-export function FormListItem({ className, children, icon, value, title, active, badges, disabled, checked, onClick, description, selected, rtl, triggerCommand, outsideChildren }: FormListItemOpts) {
- const itemRef = useRef(null);
+export function FormListItem({ className, icon, value, title, active, disabled, checked, onClick, selected, rtl, triggerCommand, outsideChildren, description, ...contentProps }: FormListItemOpts) {
+ const itemRef = useRef(null);
if (checked) {
icon = "bx bx-check";
@@ -107,7 +107,7 @@ export function FormListItem({ className, children, icon, value, title, active,
useStaticTooltip(itemRef, TOOLTIP_CONFIG);
return (
-
-
- {children}
- {badges && badges.map(({ className, text }) => (
-
{text}
- ))}
- {description &&
{description}
}
-
+ {description ? (
+
+
+
+ ) : (
+
+ )}
{outsideChildren}
-
+
);
}
+function FormListContent({ children, badges, description }: Pick) {
+ return <>
+ {children}
+ {badges && badges.map(({ className, text }) => (
+ {text}
+ ))}
+ {description && {description}
}
+ >;
+}
+
interface FormListHeaderOpts {
text: string;
}