From dbb645bbab44d08595a3a22113d83652c7814181 Mon Sep 17 00:00:00 2001 From: Jo Humphrey <31373245+jamdelion@users.noreply.github.com> Date: Fri, 3 Jan 2025 18:38:18 +0000 Subject: [PATCH] Move Options to reduce line size --- .../src/@planx/components/Checklist/Editor/Editor.tsx | 2 +- .../Checklist/Editor/{components => }/Options.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename editor.planx.uk/src/@planx/components/Checklist/Editor/{components => }/Options.tsx (88%) diff --git a/editor.planx.uk/src/@planx/components/Checklist/Editor/Editor.tsx b/editor.planx.uk/src/@planx/components/Checklist/Editor/Editor.tsx index f8451bfa64..3ba495ce53 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Editor/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Editor/Editor.tsx @@ -17,7 +17,7 @@ import { ICONS } from "../../shared/icons"; import type { Checklist } from "../model"; import { toggleExpandableChecklist } from "../model"; import { ChecklistProps } from "../types"; -import { Options } from "./components/Options"; +import { Options } from "./Options"; export const ChecklistEditor: React.FC = (props) => { const type = TYPES.Checklist; diff --git a/editor.planx.uk/src/@planx/components/Checklist/Editor/components/Options.tsx b/editor.planx.uk/src/@planx/components/Checklist/Editor/Options.tsx similarity index 88% rename from editor.planx.uk/src/@planx/components/Checklist/Editor/components/Options.tsx rename to editor.planx.uk/src/@planx/components/Checklist/Editor/Options.tsx index 0556a7ca44..8e140ab296 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Editor/components/Options.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Editor/Options.tsx @@ -5,10 +5,10 @@ import { FormikHookReturn } from "types"; import ListManager from "ui/editor/ListManager/ListManager"; import ModalSectionContent from "ui/editor/ModalSectionContent"; -import { Option } from "../../../shared"; -import { ExclusiveOrOptionManager } from "./ExclusiveOrOptionManager"; -import { GroupedOptions } from "./GroupedOptions"; -import ChecklistOptionsEditor from "./OptionsEditor"; +import { Option } from "../../shared"; +import { ExclusiveOrOptionManager } from "./components/ExclusiveOrOptionManager"; +import { GroupedOptions } from "./components/GroupedOptions"; +import ChecklistOptionsEditor from "./components/OptionsEditor"; export const Options: React.FC<{ formik: FormikHookReturn }> = ({ formik }) => { const [exclusiveOptions, nonExclusiveOptions]: Option[][] = partition(