Add "Post" badge to post card

This commit is contained in:
Pico2x 2022-10-03 16:34:12 +01:00
parent d8b7660f51
commit 2097ebc3c9

View File

@ -1,4 +1,5 @@
import { track } from '@amplitude/analytics-browser'
import { DocumentIcon } from '@heroicons/react/solid'
import clsx from 'clsx'
import { Post } from 'common/post'
import Link from 'next/link'
@ -49,6 +50,12 @@ export function PostCard(props: {
{post.subtitle}
</div>
</div>
<div>
<span className="inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-indigo-300 px-2 py-0.5 text-xs font-medium text-white">
<DocumentIcon className={'h3 w-3'} />
Post
</span>
</div>
</Row>
{onPostClick ? (
<a