CommentItem: use unified graph rendering

This commit is contained in:
Liam Fitzgerald 2021-04-07 13:15:24 +10:00
parent 156f91adb5
commit d06fcc741d
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -15,6 +15,7 @@ import { getLatestCommentRevision } from '~/logic/lib/publish';
import {useCopy} from '~/logic/lib/useCopy';
import { getPermalinkForGraph} from '~/logic/lib/permalinks';
import useMetadataState from '~/logic/state/metadata';
import {GraphContentWide} from '../landscape/components/Graph/GraphContentWide';
const ClickBox = styled(Box)`
cursor: pointer;
@ -101,19 +102,16 @@ export function CommentItem(props: CommentItemProps): ReactElement {
</Row>
</Author>
</Row>
<Box
<GraphContentWide
borderRadius="1"
p="1"
mb="1"
backgroundColor={props.highlighted ? 'washedBlue' : 'white'}
>
<MentionText
transcluded={0}
api={api}
group={group}
content={post?.contents}
/>
</Box>
transcluded={0}
api={api}
post={post}
showOurContact
/>
</Box>
);
}