Refactored collections store and layout components

This commit is contained in:
Jori Lallo
2017-05-26 12:56:10 -07:00
parent 1247fd1cd2
commit 201f90030c
29 changed files with 382 additions and 348 deletions

View File

@ -1,14 +1,18 @@
// @flow
export function homeUrl() {
export function homeUrl(): string {
return '/dashboard';
}
export function newCollectionUrl() {
export function newCollectionUrl(): string {
return '/collections/new';
}
export function searchUrl(query: string) {
export function searchUrl(query: string): string {
if (query) return `/search/${query}`;
return `/search`;
}
export function notFoundUrl(): string {
return '/404';
}