add time ago to deposit notifications

This commit is contained in:
keyan 2022-04-19 13:35:21 -05:00
parent d978ff5ea5
commit ef43319cbc
1 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,11 @@ function Notification ({ n }) {
</div> </div>
) )
: n.__typename === 'InvoicePaid' : n.__typename === 'InvoicePaid'
? <div className='font-weight-bold text-info ml-2 py-1'><Check className='fill-info mr-1' />{n.earnedSats} sats were deposited in your account</div> ? (
<div className='font-weight-bold text-info ml-2 py-1'>
<Check className='fill-info mr-1' />{n.earnedSats} sats were deposited in your account
<small className='text-muted ml-1'>{timeSince(new Date(n.sortTime))}</small>
</div>)
: ( : (
<> <>
{n.__typename === 'Votification' && {n.__typename === 'Votification' &&