Merge pull request #4452 from tylershuster/content-titles

links: adds titles to remote content
This commit is contained in:
matildepark 2021-02-18 14:40:33 -05:00 committed by GitHub
commit 8b8ad09dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,10 +116,10 @@ export const LinkItem = (props: LinkItemProps): ReactElement => {
overflow="hidden"
onClick={markRead}
>
<Text p={2}>{contents[0].text}</Text>
<RemoteContent
ref={(r) => {
remoteRef.current = r;
}}
ref={r => { remoteRef.current = r }}
renderUrl={false}
url={contents[1].url}
text={contents[0].text}
unfold={true}