From 4082a204c3b13d419dd327215699e8604a785f82 Mon Sep 17 00:00:00 2001 From: Daniel Cousens <413395+dcousens@users.noreply.github.com> Date: Tue, 30 Apr 2024 09:19:09 +1000 Subject: [PATCH] fix imports --- docs/markdoc/index.ts | 2 +- docs/pages/blog/[post].tsx | 3 +-- docs/pages/blog/index.tsx | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/markdoc/index.ts b/docs/markdoc/index.ts index c380854083b..c31b8b7dec7 100644 --- a/docs/markdoc/index.ts +++ b/docs/markdoc/index.ts @@ -1,5 +1,5 @@ import fs from 'fs/promises' -import isMatch from 'date-fns/isMatch' +import { isMatch } from 'date-fns' import Markdoc, { type Config, type Tag, type ValidateError } from '@markdoc/markdoc' import { isNonEmptyArray } from 'emery/guards' import { assert } from 'emery/assertions' diff --git a/docs/pages/blog/[post].tsx b/docs/pages/blog/[post].tsx index 30e7289308b..ea5892bb216 100644 --- a/docs/pages/blog/[post].tsx +++ b/docs/pages/blog/[post].tsx @@ -10,8 +10,7 @@ import { } from 'next' import Link from 'next/link' import { useRouter } from 'next/router' -import parse from 'date-fns/parse' -import format from 'date-fns/format' +import { parse, format } from 'date-fns' import { globby } from 'globby' import { type BlogContent, readBlogContent } from '../../markdoc' import { extractHeadings, Markdoc } from '../../components/Markdoc' diff --git a/docs/pages/blog/index.tsx b/docs/pages/blog/index.tsx index b7706c2578e..fd32116b7b7 100644 --- a/docs/pages/blog/index.tsx +++ b/docs/pages/blog/index.tsx @@ -5,8 +5,7 @@ import fs from 'fs/promises' import { globby } from 'globby' import { type InferGetStaticPropsType, type GetStaticPropsResult } from 'next' import Link from 'next/link' -import parse from 'date-fns/parse' -import format from 'date-fns/format' +import { parse, format } from 'date-fns' import { jsx } from '@emotion/react' import { MWrapper } from '../../components/content/MWrapper'