From 498b39894edc5a3a4d437a4c57d31f8431693143 Mon Sep 17 00:00:00 2001 From: James Acklin Date: Fri, 7 May 2021 10:07:18 -0400 Subject: [PATCH] permalinks: deleted reference messages fixes urbit/landscape#759 --- .../views/apps/permalinks/TranscludedNode.tsx | 49 +++++++++++++++++-- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/pkg/interface/src/views/apps/permalinks/TranscludedNode.tsx b/pkg/interface/src/views/apps/permalinks/TranscludedNode.tsx index 1fd83b12b7..ee63c8d1e1 100644 --- a/pkg/interface/src/views/apps/permalinks/TranscludedNode.tsx +++ b/pkg/interface/src/views/apps/permalinks/TranscludedNode.tsx @@ -23,7 +23,17 @@ function TranscludedLinkNode(props: { const idx = node?.post?.index?.slice(1)?.split('/') ?? []; if (typeof node?.post === 'string') { - return This link has been deleted. + return ( + + This link has been deleted. + + ) } switch (idx.length) { @@ -89,7 +99,17 @@ function TranscludedComment(props: { const { assoc, node, api, transcluded } = props; if (typeof node?.post === 'string') { - return This comment has been deleted. + return ( + + This comment has been deleted. + + ) } const group = useGroupForAssoc(assoc)!; @@ -129,7 +149,18 @@ function TranscludedPublishNode(props: { const group = useGroupForAssoc(assoc)!; if (typeof node?.post === 'string') { - return This note has been deleted. + console.log(node) + return ( + + This note has been deleted. + + ); } const idx = node?.post?.index?.slice(1)?.split('/') ?? []; @@ -185,7 +216,17 @@ export function TranscludedPost(props: { const { transcluded, post, group, commentsCount, api } = props; if (typeof post === 'string') { - return This post has been deleted. + return ( + + This post has been deleted. + + ) } return (