From ef43319cbca54eb03983c7ca29874faebd07d997 Mon Sep 17 00:00:00 2001 From: keyan Date: Tue, 19 Apr 2022 13:35:21 -0500 Subject: [PATCH] add time ago to deposit notifications --- components/notifications.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/notifications.js b/components/notifications.js index a3cde91a..7cea21ba 100644 --- a/components/notifications.js +++ b/components/notifications.js @@ -74,7 +74,11 @@ function Notification ({ n }) { ) : n.__typename === 'InvoicePaid' - ?
{n.earnedSats} sats were deposited in your account
+ ? ( +
+ {n.earnedSats} sats were deposited in your account + {timeSince(new Date(n.sortTime))} +
) : ( <> {n.__typename === 'Votification' &&