From f41beba8ba2da5e1c8a83e670bd2236b97575ac3 Mon Sep 17 00:00:00 2001 From: lucieo Date: Wed, 25 Oct 2023 16:06:20 +0200 Subject: [PATCH] Published digest date in team listing --- src/components/digests/Digests.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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
)}