diff --git a/src/components/digests/Digests.tsx b/src/components/digests/Digests.tsx index 402a8ac..edffd02 100644 --- a/src/components/digests/Digests.tsx +++ b/src/components/digests/Digests.tsx @@ -5,6 +5,7 @@ import { DigestBlockType } from '@prisma/client'; import clsx from 'clsx'; import Link from 'next/link'; import NoContent from '../layout/NoContent'; +import { formatDate } from '@/utils/date'; type Props = { digests: TeamDigestsResult[]; @@ -41,9 +42,14 @@ export const Digests = ({ digests, teamSlug }: Props) => {
{digest.publishedAt ? ( -
- Published -
+ <> +
+ Published +
+ + ) : (
Draft
)}