feat: Clicking the last updated time should open document history sidebar

Ref #1285
This commit is contained in:
Tom Moor
2020-08-11 21:01:03 -07:00
parent 7abe375b3e
commit 810dc5a061
7 changed files with 172 additions and 155 deletions

View File

@@ -4,7 +4,7 @@ import * as React from "react";
import { Link } from "react-router-dom";
import styled from "styled-components";
import Document from "models/Document";
import PublishingInfo from "components/PublishingInfo";
import DocumentMeta from "components/DocumentMeta";
import type { NavigationNode } from "types";
type Props = {
@@ -60,7 +60,7 @@ class ReferenceListItem extends React.Component<Props> {
>
<Title>{document.title}</Title>
{document.updatedBy && (
<PublishingInfo document={document} showCollection={showCollection} />
<DocumentMeta document={document} showCollection={showCollection} />
)}
</DocumentLink>
);