permalinks: present error for unavailable references

This commit is contained in:
James Acklin 2021-05-07 13:41:11 -04:00
parent 4024707b5a
commit 9a5836baf4

View File

@ -111,9 +111,9 @@ function GraphPermalink(
bg="white"
maxWidth={full ? null : "500px"}
border={full ? null : "1"}
borderColor='lightGray'
borderColor="lightGray"
borderRadius="2"
cursor='pointer'
cursor="pointer"
onClick={(e) => {
navigate(e);
}}
@ -127,6 +127,17 @@ function GraphPermalink(
showOurContact={showOurContact}
/>
)}
{!showTransclusion && (
<Box
mx="12px"
mt="12px"
p="2"
backgroundColor="washedGray"
borderRadius="2"
>
<Text gray>This reference is unavailable.</Text>
</Box>
)}
{association ? (
<PermalinkDetails
known