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 { track } from '@amplitude/analytics-browser'
|
||||||
|
import { DocumentIcon } from '@heroicons/react/solid'
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
import { Post } from 'common/post'
|
import { Post } from 'common/post'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
@ -49,6 +50,12 @@ export function PostCard(props: {
|
||||||
{post.subtitle}
|
{post.subtitle}
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</Row>
|
||||||
{onPostClick ? (
|
{onPostClick ? (
|
||||||
<a
|
<a
|
||||||
|
|
Loading…
Reference in New Issue
Block a user