Merge remote-tracking branch 'origin/develop' into add-linting

This commit is contained in:
Lachlan Kermode
2019-01-22 15:34:07 +00:00
53 changed files with 746 additions and 617 deletions

View File

@@ -15,13 +15,17 @@ export const getSites = (state) => {
}
export const getSources = state => {
if (process.env.features.USE_SOURCES) return state.domain.sources
return {}
}
export const getShapes = state => {
if (process.env.features.USE_SHAPES) return state.domain.shapes
return []
}
export const getNotifications = state => state.domain.notifications
export const getTagTree = state => state.domain.tags
export const getTagsFilter = state => state.app.filters.tags
export const getCategoriesFilter = state => state.app.filters.categories
export const getTimeRange = state => state.app.filters.timerange
export const getTimeRange = state => state.app.timeline.range
/**
* Some handy helpers