From 9dfd6aa77518b3a1e6bfd926a3b7719c32a8c97f Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 24 Oct 2022 23:19:33 +0300 Subject: use the new api --- src/components/Post.astro | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/components/Post.astro') diff --git a/src/components/Post.astro b/src/components/Post.astro index 6805846..1aa7a0d 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -1,27 +1,24 @@ --- -import { creatorColor, formatTime } from '../lib/util'; +import { formatTime } from '../lib/util'; export interface Props { id: string; date: number; - creator: string; box: string; board: string } -const { id, date, creator, box, board = '' } = Astro.props; +const { id, date, box, board = '' } = Astro.props; ---
{(board != '') ? ( {id} ) : ( - {id} + {id} )} at {formatTime(date)}
- -> - {creator}

-- cgit v1.2.3