Follow notif groups => Other activity

This commit is contained in:
Ian Philips 2022-06-06 16:36:55 -06:00
parent 85ad343d5d
commit 4aec46f880

View File

@ -175,7 +175,7 @@ function NotificationGroupItem(props: {
className?: string
}) {
const { notificationGroup, className } = props
const { sourceContractId, notifications } = notificationGroup
const { sourceContractId, notifications, timePeriod } = notificationGroup
const contract = useContract(sourceContractId ?? '')
const numSummaryLines = 3
const [expanded, setExpanded] = useState(false)
@ -209,8 +209,14 @@ function NotificationGroupItem(props: {
onClick={() => setExpanded(!expanded)}
className={'line-clamp-1 cursor-pointer pl-1 sm:pl-0'}
>
{contract ? (
<span>
{'Activity on '}
<span className={'mx-1 font-bold'}>{contract?.question}</span>
</span>
) : (
'Other activity'
)}
</div>
<RelativeTimestamp time={notifications[0].createdTime} />
</div>