mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 18:21:34 +03:00
permalinks: style deleted chat reference
This commit is contained in:
parent
4024707b5a
commit
6d4bbe2517
@ -269,6 +269,21 @@ export function TranscludedNode(props: {
|
||||
}) {
|
||||
const { node, showOurContact, assoc, transcluded } = props;
|
||||
const group = useGroupForAssoc(assoc)!;
|
||||
|
||||
if (typeof node?.post === 'string') {
|
||||
return (
|
||||
<Box
|
||||
mx="12px"
|
||||
mt="12px"
|
||||
p="2"
|
||||
backgroundColor="washedGray"
|
||||
borderRadius="2"
|
||||
>
|
||||
<Text gray>This message has been deleted.</Text>
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
||||
switch (assoc.metadata.config.graph) {
|
||||
case 'chat':
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user