Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshenrik committed Nov 30, 2023
1 parent 6888786 commit 9a86ead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/pages/404.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
import Layout from "../layouts/Layout.astro";
import Link from "../components/Link.astro";
import { formatDate, formatTime } from "../utils/date";
---

<Layout
Expand Down
5 changes: 3 additions & 2 deletions src/utils/date.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { isThisYear, format } from "date-fns";
import { capitalize } from "lodash";
import isThisYear from "date-fns/isThisYear";
import format from "date-fns/format";
import capitalize from "lodash/capitalize";

export const formatTime = (date: string) => {
try {
Expand Down

0 comments on commit 9a86ead

Please sign in to comment.