Skip to content

Commit

Permalink
fix: Sort import after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed May 17, 2024
1 parent 080e6a6 commit 44db27a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions editor.planx.uk/src/pages/FlowEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down

0 comments on commit 44db27a

Please sign in to comment.