Added: Recently published view to collection

Added: Infinite scroll to collection
This commit is contained in:
Tom Moor
2019-01-07 23:14:43 -08:00
parent 74515e0b19
commit e6e89dc243
10 changed files with 87 additions and 25 deletions

View File

@@ -15,6 +15,7 @@ type Props = {
highlight?: ?string,
context?: ?string,
showCollection?: boolean,
showPublished?: boolean,
ref?: *,
};
@@ -133,6 +134,7 @@ class DocumentPreview extends React.Component<Props> {
const {
document,
showCollection,
showPublished,
highlight,
context,
...rest
@@ -173,6 +175,7 @@ class DocumentPreview extends React.Component<Props> {
<PublishingInfo
document={document}
collection={showCollection ? document.collection : undefined}
showPublished={showPublished}
/>
</DocumentLink>
);