Add createdAt to territory header

This commit is contained in:
ekzyis 2024-04-03 01:17:32 +02:00
parent c0ffbc401a
commit 3cd80a54f6
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,8 @@ export function TerritoryInfo ({ sub }) {
<Link href={`/${sub.user.name}`}>
@{sub.user.name}<span> </span><Hat className='fill-grey' user={sub.user} height={12} width={12} />
</Link>
<span>on </span>
<span className='fw-bold'>{new Date(sub.createdAt).toDateString()}</span>
</div>
<div className='text-muted'>
<span>post cost </span>

View File

@ -5,6 +5,7 @@ import { COMMENTS_ITEM_EXT_FIELDS } from './comments'
export const SUB_FIELDS = gql`
fragment SubFields on Sub {
name
createdAt
postTypes
allowFreebies
rankingType