15 lines
389 B
JavaScript
15 lines
389 B
JavaScript
import history from 'Routing/history';
|
|
import { getCollectionUrl, getNewEntryUrl } from 'Lib/urlHelper';
|
|
|
|
export function searchCollections(query) {
|
|
history.push(`/search/${query}`);
|
|
}
|
|
|
|
export function showCollection(collectionName) {
|
|
history.push(getCollectionUrl(collectionName));
|
|
}
|
|
|
|
export function createNewEntry(collectionName) {
|
|
history.push(getNewEntryUrl(collectionName));
|
|
}
|