Working on refactoring to support router use case

This commit is contained in:
Max Lynch
2020-12-30 13:19:31 -06:00
parent 3fe67d30b3
commit 29ae24c6a6
11 changed files with 172 additions and 145 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import * as actions from '../../store/actions';
const Nav = ({ page }) => {
const [showProfileMenu, setShowProfileMenu] = useState(false);
const title = typeof page.title === 'function' ? page.title() : page.title;
const title = typeof page?.title === 'function' ? page?.title() : page?.title || '';
useEffect(() => {
Plugins.StatusBar.setStyle({