From 9a511c1ccc3ef03a0972e3452553a6a132d71c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 25 Apr 2024 10:36:13 +0100 Subject: [PATCH] chore: Move `EditHistory` to sidebar folder --- .../pages/FlowEditor/components/{ => Sidebar}/EditHistory.tsx | 4 ++-- .../src/pages/FlowEditor/components/Sidebar/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename editor.planx.uk/src/pages/FlowEditor/components/{ => Sidebar}/EditHistory.tsx (96%) diff --git a/editor.planx.uk/src/pages/FlowEditor/components/EditHistory.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/EditHistory.tsx similarity index 96% rename from editor.planx.uk/src/pages/FlowEditor/components/EditHistory.tsx rename to editor.planx.uk/src/pages/FlowEditor/components/Sidebar/EditHistory.tsx index 08841d52c7..05a4b05f2c 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/EditHistory.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/EditHistory.tsx @@ -5,9 +5,9 @@ import Typography from "@mui/material/Typography"; import { formatOps } from "@planx/graph"; import DelayedLoadingIndicator from "components/DelayedLoadingIndicator"; import React from "react"; -import { useStore } from "../lib/store"; +import { useStore } from "../../lib/store"; import { Operation } from "types"; -import { formatLastEditDate } from "../utils"; +import { formatLastEditDate } from "../../utils"; export const EditHistory = () => { const [flowId, flow] = useStore((state) => [state.id, state.flow]); diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/index.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/index.tsx index 9be3fcf601..080491457d 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/index.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/index.tsx @@ -35,7 +35,7 @@ import Input from "ui/shared/Input"; import Questions from "../../../Preview/Questions"; import { useStore } from "../../lib/store"; -import { EditHistory } from "../EditHistory"; +import { EditHistory } from "./EditHistory"; type SidebarTabs = "PreviewBrowser" | "History";