Symptom view redesign
This commit is contained in:
committed by
Sofiya Tepikin
parent
ef16cfd041
commit
885da5c293
+1
-11
@@ -1,17 +1,8 @@
|
||||
import symptomViews from './cycle-day/symptoms'
|
||||
import settingsViews from './settings'
|
||||
|
||||
import settingsLabels from '../i18n/en/settings'
|
||||
const labels = settingsLabels.menuItems
|
||||
|
||||
const symptomsPages = Object.keys(symptomViews).map(symptomView => ({
|
||||
component: symptomView,
|
||||
parent: 'CycleDay',
|
||||
}))
|
||||
|
||||
export const isSymptomView =
|
||||
(page) => Object.keys(symptomViews).includes(page)
|
||||
|
||||
export const isSettingsView =
|
||||
(page) => Object.keys(settingsViews).includes(page)
|
||||
|
||||
@@ -82,6 +73,5 @@ export const pages = [
|
||||
{
|
||||
component: 'CycleDay',
|
||||
parent: 'Home',
|
||||
},
|
||||
...symptomsPages
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user