From 44db27a8864b10b0b3598196bb35c0ebd2260fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 17 May 2024 12:19:59 +0100 Subject: [PATCH] fix: Sort import after rebase --- editor.planx.uk/src/pages/FlowEditor/index.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/editor.planx.uk/src/pages/FlowEditor/index.tsx b/editor.planx.uk/src/pages/FlowEditor/index.tsx index b324c81aa2..073c93fbf2 100644 --- a/editor.planx.uk/src/pages/FlowEditor/index.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/index.tsx @@ -7,8 +7,6 @@ import Box from "@mui/material/Box"; import Link from "@mui/material/Link"; import { styled } from "@mui/material/styles"; import Typography from "@mui/material/Typography"; -import { OT } from "@planx/graph/types"; -import { formatDistanceToNow } from "date-fns"; import React, { useRef } from "react"; import { FONT_WEIGHT_SEMI_BOLD } from "theme"; @@ -19,14 +17,6 @@ import { useStore } from "./lib/store"; import useScrollControlsAndRememberPosition from "./lib/useScrollControlsAndRememberPosition"; import { formatLastEditMessage } from "./utils"; - -export const formatLastEditDate = (date: string): string => { - return formatDistanceToNow(new Date(date), { - includeSeconds: true, - addSuffix: true, - }); -}; - const EditorContainer = styled(Box)(() => ({ display: "flex", alignItems: "stretch",