From 673c39d798f2c6e65ae45eb46159f1d73efec554 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 22 Jan 2026 08:05:49 +0200 Subject: [PATCH] Revert "feat(options/advanced): add description for experimental" This reverts commit fc2ab91280b6697a0138c3889894b6ce7276f4a8. --- .../widgets/type_widgets/options/advanced.tsx | 1 - .../options/components/CheckboxList.tsx | 30 +++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/apps/client/src/widgets/type_widgets/options/advanced.tsx b/apps/client/src/widgets/type_widgets/options/advanced.tsx index c9d9b4a4f..2959c5a1c 100644 --- a/apps/client/src/widgets/type_widgets/options/advanced.tsx +++ b/apps/client/src/widgets/type_widgets/options/advanced.tsx @@ -191,7 +191,6 @@ function ExperimentalOptions() { values={filteredExperimentalFeatures} keyProperty="id" titleProperty="name" - descriptionProperty="description" currentValue={enabledExperimentalFeatures} onChange={setEnabledExperimentalFeatures} /> diff --git a/apps/client/src/widgets/type_widgets/options/components/CheckboxList.tsx b/apps/client/src/widgets/type_widgets/options/components/CheckboxList.tsx index baa37baf5..a2f48a04f 100644 --- a/apps/client/src/widgets/type_widgets/options/components/CheckboxList.tsx +++ b/apps/client/src/widgets/type_widgets/options/components/CheckboxList.tsx @@ -1,17 +1,14 @@ -import FormCheckbox from "../../../react/FormCheckbox"; - interface CheckboxListProps { values: T[]; keyProperty: keyof T; titleProperty?: keyof T; disabledProperty?: keyof T; - descriptionProperty?: keyof T; currentValue: string[]; onChange: (newValues: string[]) => void; columnWidth?: string; } -export default function CheckboxList({ values, keyProperty, titleProperty, disabledProperty, descriptionProperty, currentValue, onChange, columnWidth }: CheckboxListProps) { +export default function CheckboxList({ values, keyProperty, titleProperty, disabledProperty, currentValue, onChange, columnWidth }: CheckboxListProps) { function toggleValue(value: string) { if (currentValue.includes(value)) { // Already there, needs removing. @@ -25,17 +22,20 @@ export default function CheckboxList({ values, keyProperty, titleProperty, di return (
    {values.map(value => ( -
  • - toggleValue(String(value[keyProperty]))} - /> +
  • +
  • ))}
- ); -} + ) +} \ No newline at end of file