add MapShapes, analog of MapSites

This commit is contained in:
Lachlan Kermode
2019-01-18 10:41:06 +00:00
parent 6226dc3e85
commit fb46948b77
6 changed files with 89 additions and 41 deletions

View File

@@ -15,6 +15,10 @@ 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