mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
added flags to post header
This commit is contained in:
parent
eefd188c95
commit
2c48f6e3dc
@ -1,5 +1,6 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import { DateTime } from "luxon"
|
import { DateTime } from "luxon"
|
||||||
|
import { Tag } from "antd"
|
||||||
|
|
||||||
import { Image } from "components"
|
import { Image } from "components"
|
||||||
import { Icons } from "components/Icons"
|
import { Icons } from "components/Icons"
|
||||||
@ -43,8 +44,19 @@ export default (props) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="info">
|
<div className="info">
|
||||||
<h1 onClick={goToProfile}>
|
<h1 onClick={goToProfile}>
|
||||||
{props.postData.user?.fullName ?? `${props.postData.user?.username}`}
|
{
|
||||||
{props.postData.user?.verified && <Icons.verifiedBadge />}
|
props.postData.user?.fullName ?? `${props.postData.user?.username}`
|
||||||
|
}
|
||||||
|
{
|
||||||
|
props.postData.user?.verified && <Icons.verifiedBadge />
|
||||||
|
}
|
||||||
|
{
|
||||||
|
props.postData.flags?.includes("nsfw") && <Tag
|
||||||
|
color="volcano"
|
||||||
|
>
|
||||||
|
NSFW
|
||||||
|
</Tag>
|
||||||
|
}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<span className="timeago">
|
<span className="timeago">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user