Working on refactoring to support router use case
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user