Compare commits

...

1 Commits

Author SHA1 Message Date
James Grugett
16a7df4fec Show creator volume in user page 2022-07-19 16:44:41 -05:00

View File

@ -189,17 +189,22 @@ export function UserPage(props: {
<Col className="mx-4 -mt-6"> <Col className="mx-4 -mt-6">
<span className="text-2xl font-bold">{user.name}</span> <span className="text-2xl font-bold">{user.name}</span>
<span className="text-gray-500">@{user.username}</span> <span className="text-gray-500">@{user.username}</span>
<span className="text-gray-500"> <Row className="mt-1 gap-4 text-gray-500">
<div>
<span <span
className={clsx( className={clsx(profit >= 0 ? 'text-green-600' : 'text-red-400')}
'text-md',
profit >= 0 ? 'text-green-600' : 'text-red-400'
)}
> >
{formatMoney(profit)} {formatMoney(profit)}
</span>{' '} </span>{' '}
profit profit
</span> </div>
<div>
<span className={'text-green-600'}>
{formatMoney(user.creatorVolumeCached.allTime)}
</span>{' '}
created volume
</div>
</Row>
<Spacer h={4} /> <Spacer h={4} />