Added: Recently published view to collection
Added: Infinite scroll to collection
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user