Removes the lowercasing to the header title component

This commit is contained in:
Sofiya Tepikin
2019-09-15 15:29:15 +02:00
parent 580f1e79ba
commit f444de0b87
5 changed files with 15 additions and 16 deletions
+1 -8
View File
@@ -18,13 +18,6 @@ import {headerTitles, menuTitles} from '../i18n/en/labels'
import setupNotifications from '../lib/notifications'
import { closeDb } from '../db'
// design wants everyhting lowercased, but we don't
// have CSS pseudo properties
const headerTitlesLowerCase = Object.keys(headerTitles).reduce((acc, curr) => {
acc[curr] = headerTitles[curr].toLowerCase()
return acc
}, {})
const HOME_PAGE = 'Home'
const CYCLE_DAY_PAGE = 'CycleDay'
const SETTINGS_MENU_PAGE = 'SettingsMenu'
@@ -107,7 +100,7 @@ class App extends Component {
...symptomViews
}
const Page = pages[currentPage]
const title = headerTitlesLowerCase[currentPage]
const title = headerTitles[currentPage]
const hasDefaultHeader =
!this.isSymptomView() &&