add post cost to territory details

This commit is contained in:
keyan 2023-12-08 12:46:31 -06:00
parent 44ad127c60
commit 89ecb8c0b9
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import Hat from '../../components/hat'
import styles from '../../components/item.module.css'
import TerritoryPaymentDue from '../../components/territory-payment-due'
import Badge from 'react-bootstrap/Badge'
import { numWithUnits } from '../../lib/format'
export const getServerSideProps = getGetServerSideProps({
query: SUB_ITEMS,
@ -54,6 +55,11 @@ export default function Sub ({ ssrData }) {
@{sub.user.name}<span> </span><Hat className='fill-grey' user={sub.user} height={12} width={12} />
</Link>
</div>
<div className='text-muted'>
<span>post cost</span>
<span> </span>
<span className='fw-bold'>{numWithUnits(sub.baseCost)}</span>
</div>
</CardFooter>
</AccordianCard>
</div>