diff --git a/front/components/GtkUI/ElementList.tsx b/front/components/GtkUI/ElementList.tsx
index e967adc..66f5030 100644
--- a/front/components/GtkUI/ElementList.tsx
+++ b/front/components/GtkUI/ElementList.tsx
@@ -81,7 +81,11 @@ const getElementDropdownNode = (
isDisabled={disabled}
>
{options.map((option) => (
-
+
))}
);
@@ -95,9 +99,11 @@ type ElementProps = {
description?: string;
disabled?: boolean;
onPress?: () => void;
- // node is only used if type is "custom"
- node?: React.ReactNode;
- data?: ElementTextProps | ElementToggleProps | ElementDropdownProps;
+ data?:
+ | ElementTextProps
+ | ElementToggleProps
+ | ElementDropdownProps
+ | React.ReactNode;
};
const Element = ({
@@ -200,7 +206,7 @@ const Element = ({
disabled ?? false
);
case "custom":
- return node;
+ return data as React.ReactNode;
default:
return Unknown type;
}
@@ -227,9 +233,15 @@ const ElementList = ({ elements, style }: ElementListProps) => {
{(() => {
const elementsWithDividers = [];
for (let i = 0; i < elements.length; i++) {
- elementsWithDividers.push();
+ elementsWithDividers.push(
+
+
+
+ );
if (i < elements.length - 1) {
- elementsWithDividers.push();
+ elementsWithDividers.push(
+
+ );
}
}
return elementsWithDividers;