From e8324428bfe2e15fe2a2eb0b3d83dc19a97acd46 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Sun, 20 Dec 2020 23:45:08 -0600 Subject: [PATCH] Tab switcher --- components/Content.jsx | 13 +++++++------ components/Nav.jsx | 19 ++++++++++++++++--- components/TabBar.jsx | 2 +- components/pages/Home.jsx | 4 ++-- components/pages/Profile.jsx | 4 ++-- components/pages/Settings.jsx | 4 ++-- pages/index.js | 10 ++++++++-- styles/global.css | 9 ++++++++- 8 files changed, 46 insertions(+), 19 deletions(-) diff --git a/components/Content.jsx b/components/Content.jsx index d719c59..d88f534 100644 --- a/components/Content.jsx +++ b/components/Content.jsx @@ -1,9 +1,10 @@ -const Content = ({ className, children }) => ( -
+import classNames from 'classnames'; + +const Content = ({ className, visible, children }) => ( +
{children}
); diff --git a/components/Nav.jsx b/components/Nav.jsx index 1350dfc..cc89164 100644 --- a/components/Nav.jsx +++ b/components/Nav.jsx @@ -1,13 +1,26 @@ -import { useState } from "react"; +import { useEffect, useState } from "react"; + +import { Plugins } from '@capacitor/core'; const Nav = ({ page }) => { const [showMenu, setShowMenu] = useState(false); const [showMobileMenu, setShowMobileMenu] = useState(false); + useEffect(() => { + Plugins.StatusBar.setStyle({ + style: 'DARK' + }); + }, []); + return ( -