diff --git a/components/notifications.js b/components/notifications.js
index 0b7a701d..5c5367a1 100644
--- a/components/notifications.js
+++ b/components/notifications.js
@@ -102,6 +102,19 @@ function NoteHeader ({ color, children, big }) {
)
}
+function NoteItem ({ item }) {
+ return (
+
+ {item.title
+ ?
+ : (
+
+
+ )}
+
+ )
+}
+
const defaultOnClick = n => {
const type = n.__typename
if (type === 'Earn') {
@@ -437,17 +450,7 @@ function Invoicification ({ n: { invoice, sortTime } }) {
{timeSince(new Date(sortTime))}
-
- {invoice.item.title
- ?
- : (
-
-
-
-
-
- )}
-
+
)
}
@@ -494,17 +497,7 @@ function Votification ({ n }) {
>}
-
- {n.item.title
- ?
- : (
-
-
-
-
-
- )}
-
+
>
)
}
@@ -515,17 +508,7 @@ function ForwardedVotification ({ n }) {
you were forwarded {numWithUnits(n.earnedSats, { abbreviate: false })} from
-
- {n.item.title
- ?
- : (
-
-
-
-
-
- )}
-
+
>
)
}
@@ -536,16 +519,7 @@ function Mention ({ n }) {
you were mentioned in
-
- {n.item.title
- ?
- : (
-
-
-
-
-
)}
-
+
>
)
}
@@ -556,14 +530,7 @@ function ItemMention ({ n }) {
your item was mentioned in
- {n.item?.title
- ?
- : (
-
-
-
-
-
)}
+
>
)
}
@@ -584,19 +551,7 @@ function JobChanged ({ n }) {
}
function Reply ({ n }) {
- return (
-
- {n.item.title
- ?
- : (
-
-
-
-
-
- )}
-
- )
+ return
}
function FollowActivity ({ n }) {
@@ -605,15 +560,7 @@ function FollowActivity ({ n }) {
a stacker you subscribe to {n.item.parentId ? 'commented' : 'posted'}
- {n.item.title
- ?
- : (
-
-
-
-
-
- )}
+
>
)
}
@@ -624,7 +571,7 @@ function TerritoryPost ({ n }) {
new post in ~{n.item.sub.name}
-
+
>
@@ -633,12 +580,10 @@ function TerritoryPost ({ n }) {
function TerritoryTransfer ({ n }) {
return (
- <>
-
- ~{n.sub.name} was transferred to you
- {timeSince(new Date(n.sortTime))}
-
- >
+
+ ~{n.sub.name} was transferred to you
+ {timeSince(new Date(n.sortTime))}
+
)
}
@@ -648,15 +593,7 @@ function Reminder ({ n }) {
you asked to be reminded of this {n.item.title ? 'post' : 'comment'}
- {n.item.title
- ?
- : (
-
-
-
-
-
- )}
+
>
)
}