From 740a45c61c8b4a206c25e8b3d391aef96ce53876 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Fri, 26 Apr 2024 12:11:08 -0400 Subject: [PATCH] fix: docs site after date fns update --- packages/docs/src/components/DateDisplay.tsx | 6 +++--- packages/docs/src/components/meta/JsonLdMeta.tsx | 2 +- packages/docs/src/pages/releases.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/docs/src/components/DateDisplay.tsx b/packages/docs/src/components/DateDisplay.tsx index 95d7996c5..75a68909b 100644 --- a/packages/docs/src/components/DateDisplay.tsx +++ b/packages/docs/src/components/DateDisplay.tsx @@ -1,6 +1,6 @@ -import addMinutes from 'date-fns/addMinutes'; -import format from 'date-fns/format'; -import parseISO from 'date-fns/parseISO'; +import { addMinutes } from 'date-fns/addMinutes'; +import { format } from 'date-fns/format'; +import { parseISO } from 'date-fns/parseISO'; import { useEffect, useState } from 'react'; function formatDate(date: Date, dateFormat: string) { diff --git a/packages/docs/src/components/meta/JsonLdMeta.tsx b/packages/docs/src/components/meta/JsonLdMeta.tsx index 90e94e7f2..1df161588 100644 --- a/packages/docs/src/components/meta/JsonLdMeta.tsx +++ b/packages/docs/src/components/meta/JsonLdMeta.tsx @@ -1,4 +1,4 @@ -import formatISO from 'date-fns/formatISO'; +import { formatISO } from 'date-fns/formatISO'; import Head from 'next/head'; import { jsonLdScriptProps } from 'react-schemaorg'; diff --git a/packages/docs/src/pages/releases.tsx b/packages/docs/src/pages/releases.tsx index 25c59f696..20f1dba5d 100644 --- a/packages/docs/src/pages/releases.tsx +++ b/packages/docs/src/pages/releases.tsx @@ -3,8 +3,8 @@ import AlertTitle from '@mui/material/AlertTitle'; import Box from '@mui/material/Box'; import Typography from '@mui/material/Typography'; import { styled } from '@mui/material/styles'; -import format from 'date-fns/format'; -import parseISO from 'date-fns/parseISO'; +import { format } from 'date-fns/format'; +import { parseISO } from 'date-fns/parseISO'; import Link from 'next/link'; import { useMemo } from 'react';