Add "Post" badge to post card
This commit is contained in:
parent
d8b7660f51
commit
2097ebc3c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user