Follow notif groups => Other activity
This commit is contained in:
parent
85ad343d5d
commit
4aec46f880
|
@ -175,7 +175,7 @@ function NotificationGroupItem(props: {
|
||||||
className?: string
|
className?: string
|
||||||
}) {
|
}) {
|
||||||
const { notificationGroup, className } = props
|
const { notificationGroup, className } = props
|
||||||
const { sourceContractId, notifications } = notificationGroup
|
const { sourceContractId, notifications, timePeriod } = notificationGroup
|
||||||
const contract = useContract(sourceContractId ?? '')
|
const contract = useContract(sourceContractId ?? '')
|
||||||
const numSummaryLines = 3
|
const numSummaryLines = 3
|
||||||
const [expanded, setExpanded] = useState(false)
|
const [expanded, setExpanded] = useState(false)
|
||||||
|
@ -209,8 +209,14 @@ function NotificationGroupItem(props: {
|
||||||
onClick={() => setExpanded(!expanded)}
|
onClick={() => setExpanded(!expanded)}
|
||||||
className={'line-clamp-1 cursor-pointer pl-1 sm:pl-0'}
|
className={'line-clamp-1 cursor-pointer pl-1 sm:pl-0'}
|
||||||
>
|
>
|
||||||
|
{contract ? (
|
||||||
|
<span>
|
||||||
{'Activity on '}
|
{'Activity on '}
|
||||||
<span className={'mx-1 font-bold'}>{contract?.question}</span>
|
<span className={'mx-1 font-bold'}>{contract?.question}</span>
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
'Other activity'
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<RelativeTimestamp time={notifications[0].createdTime} />
|
<RelativeTimestamp time={notifications[0].createdTime} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user