From 40b0d0dd4f2eb8798e46abf1ed6ee7abd5ad328b Mon Sep 17 00:00:00 2001 From: Jo Humphrey <31373245+jamdelion@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:24:28 +0000 Subject: [PATCH] Delete components sub folders --- .../src/@planx/components/Checklist/Editor/Editor.tsx | 2 +- .../components/Checklist/Editor/{components => }/Options.tsx | 4 ++-- .../Checklist/Editor/{components => }/OptionsEditor.tsx | 4 ++-- .../Public/{components => }/AutoAnsweredChecklist.tsx | 2 +- .../src/@planx/components/Checklist/Public/Public.tsx | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename editor.planx.uk/src/@planx/components/Checklist/Editor/{components => }/Options.tsx (98%) rename editor.planx.uk/src/@planx/components/Checklist/Editor/{components => }/OptionsEditor.tsx (96%) rename editor.planx.uk/src/@planx/components/Checklist/Public/{components => }/AutoAnsweredChecklist.tsx (90%) 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 74e00e412c..49c592a064 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Editor/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Editor/Editor.tsx @@ -16,7 +16,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 ChecklistComponent: 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 98% 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 ea42df93eb..0080d90a92 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Editor/components/Options.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Editor/Options.tsx @@ -12,8 +12,8 @@ import ModalSectionContent from "ui/editor/ModalSectionContent"; import Input from "ui/shared/Input/Input"; import InputRow from "ui/shared/InputRow"; -import { Option } from "../../../shared"; -import type { Group } from "../../model"; +import { Option } from "../../shared"; +import type { Group } from "../model"; import { OptionEditor } from "./OptionsEditor"; export const Options: React.FC<{ formik: FormikHookReturn }> = ({ formik }) => { diff --git a/editor.planx.uk/src/@planx/components/Checklist/Editor/components/OptionsEditor.tsx b/editor.planx.uk/src/@planx/components/Checklist/Editor/OptionsEditor.tsx similarity index 96% rename from editor.planx.uk/src/@planx/components/Checklist/Editor/components/OptionsEditor.tsx rename to editor.planx.uk/src/@planx/components/Checklist/Editor/OptionsEditor.tsx index 034a5ecbea..67bff66212 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Editor/components/OptionsEditor.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Editor/OptionsEditor.tsx @@ -5,8 +5,8 @@ import Input from "ui/shared/Input/Input"; import InputRow from "ui/shared/InputRow"; import InputRowItem from "ui/shared/InputRowItem"; -import { FlagsSelect } from "../../../shared/FlagsSelect"; -import { OptionEditorProps } from "../../types"; +import { FlagsSelect } from "../../shared/FlagsSelect"; +import { OptionEditorProps } from "../types"; export const OptionEditor: React.FC = (props) => { return ( diff --git a/editor.planx.uk/src/@planx/components/Checklist/Public/components/AutoAnsweredChecklist.tsx b/editor.planx.uk/src/@planx/components/Checklist/Public/AutoAnsweredChecklist.tsx similarity index 90% rename from editor.planx.uk/src/@planx/components/Checklist/Public/components/AutoAnsweredChecklist.tsx rename to editor.planx.uk/src/@planx/components/Checklist/Public/AutoAnsweredChecklist.tsx index bca1b81cc4..1bb8c1ae1a 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Public/components/AutoAnsweredChecklist.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Public/AutoAnsweredChecklist.tsx @@ -1,6 +1,6 @@ import React, { useEffect } from "react"; -import { Props } from "../../types"; +import { Props } from "../types"; // An auto-answered Checklist won't be seen by the user, but still leaves a breadcrumb export const AutoAnsweredChecklist: React.FC< diff --git a/editor.planx.uk/src/@planx/components/Checklist/Public/Public.tsx b/editor.planx.uk/src/@planx/components/Checklist/Public/Public.tsx index 8ac20e1b36..23d9bdd2e4 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Public/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Public/Public.tsx @@ -20,7 +20,7 @@ import ErrorWrapper from "ui/shared/ErrorWrapper"; import { object } from "yup"; import { Props } from "../types"; -import { AutoAnsweredChecklist } from "./components/AutoAnsweredChecklist"; +import { AutoAnsweredChecklist } from "./AutoAnsweredChecklist"; import { getInitialExpandedGroups, toggleInArray } from "./helpers"; export enum ChecklistLayout {