-
-
-
- {pubkeys.map(v => (
-
- ))}
-
-
-
-
{kind === EventKind.ZapReceipt && formatShort(totalZaps)}
- {actionName(pubkeys.length - 1, getDisplayName(firstPubkeyProfile, firstPubkey))}
-
-
{context && }
+ {inView && (
+ <>
+
+
+
+
+
{kind === EventKind.ZapReceipt && formatShort(totalZaps)}
+
+
+
+ {pubkeys
+ .filter(a => a !== "anon")
+ .slice(0, 12)
+ .map(v => (
+
+ ))}
+
+ {kind !== EventKind.TextNote && (
+
+ {actionName(
+ pubkeys.length - 1,
+ firstPubkey === "anon"
+ ? formatMessage({ defaultMessage: "Anon" })
+ : getDisplayName(firstPubkeyProfile, firstPubkey)
+ )}
+
+ )}
+
{context && }
+
+ >
+ )}
);
}
function NotificationContext({ link }: { link: NostrLink }) {
const { data: ev } = useEventFeed(link);
+ const navigate = useNavigate();
const content = ev?.content ?? "";
return (
-
+
navigate(`/${link.encode()}`)} className="pointer">
120 ? `${content.substring(0, 120)}...` : content}
tags={ev?.tags ?? []}
diff --git a/packages/app/src/index.css b/packages/app/src/index.css
index 76186209..6ecb0cfa 100644
--- a/packages/app/src/index.css
+++ b/packages/app/src/index.css
@@ -14,6 +14,8 @@
--success: #2ad544;
--warning: #ff8800;
--live: #f83838;
+ --heart: #ef4444;
+ --zap: #ff710a;
--gray-superlight: #eee;
--gray-light: #999;
@@ -739,3 +741,11 @@ button.tall {
background: transparent !important;
position: absolute !important;
}
+
+svg.heart-solid {
+ color: var(--heart);
+}
+
+svg.zap-solid {
+ color: var(--zap);
+}