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

@ -14,8 +14,10 @@ export function newCollectionUrl(): string {
return '/collections/new';
}
export function collectionUrl(collectionId: string): string {
return `/collections/${collectionId}`;
export function collectionUrl(collectionId: string, section: ?string): string {
const path = `/collections/${collectionId}`;
if (section) return `${path}/${section}`;
return path;
}
export function documentUrl(doc: Document): string {