Setup for unauthenticated doc viewing

This commit is contained in:
Tom Moor
2018-05-12 21:01:17 -07:00
parent 3005da78e2
commit dded458582
8 changed files with 33 additions and 54 deletions

View File

@@ -112,7 +112,14 @@ class DocumentPreview extends React.Component<Props> {
} = this.props;
return (
<DocumentLink to={document.url} innerRef={innerRef} {...rest}>
<DocumentLink
to={{
pathname: document.url,
state: { title: document.title },
}}
innerRef={innerRef}
{...rest}
>
<Heading>
<Highlight text={document.title} highlight={highlight} />
{document.publishedAt && (