diff --git a/src/components/ArticleView.tsx b/src/components/ArticleView.tsx
index 9a4b9a6..4e242ff 100644
--- a/src/components/ArticleView.tsx
+++ b/src/components/ArticleView.tsx
@@ -222,10 +222,7 @@ export function ArticleView({ post }: ArticleViewProps) {
Zap revenue splits
{zapSplits.map((s, i) => (
-
-
{genUserName(s.pubkey)}
-
{s.weight}%
-
+
))}
@@ -320,3 +317,22 @@ export function ArticleView({ post }: ArticleViewProps) {
);
}
+
+function ZapSplitEntry({ pubkey, weight }: { pubkey: string; weight: number }) {
+ const author = useAuthor(pubkey);
+ const metadata = author.data?.metadata;
+ const displayName = metadata?.display_name || metadata?.name || genUserName(pubkey);
+
+ return (
+
+
+
+
+ {displayName[0]?.toUpperCase()}
+
+
{displayName}
+
+ {weight}%
+
+ );
+}