From 8b2df11c87722f670849c9c27a26c16bedc44680 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Sun, 20 Dec 2020 23:02:27 -0600 Subject: [PATCH] Shell --- components/App.jsx | 7 +++++++ components/Content.jsx | 11 +++++++++++ components/Nav.jsx | 2 +- components/TabBar.jsx | 9 ++++++--- components/pages/Home.jsx | 5 +++-- components/pages/Profile.jsx | 5 +++-- components/pages/Settings.jsx | 6 ++++-- pages/index.js | 6 +++--- styles/global.css | 13 +++---------- 9 files changed, 41 insertions(+), 23 deletions(-) create mode 100644 components/App.jsx create mode 100644 components/Content.jsx diff --git a/components/App.jsx b/components/App.jsx new file mode 100644 index 0000000..eeede7f --- /dev/null +++ b/components/App.jsx @@ -0,0 +1,7 @@ +const App = ({ children }) => ( +
+ {children} +
+); + +export default App; \ No newline at end of file diff --git a/components/Content.jsx b/components/Content.jsx new file mode 100644 index 0000000..d719c59 --- /dev/null +++ b/components/Content.jsx @@ -0,0 +1,11 @@ +const Content = ({ className, children }) => ( +
+ {children} +
+); + +export default Content; \ No newline at end of file diff --git a/components/Nav.jsx b/components/Nav.jsx index 6a2b0b1..1350dfc 100644 --- a/components/Nav.jsx +++ b/components/Nav.jsx @@ -6,7 +6,7 @@ const Nav = ({ page }) => { const [showMobileMenu, setShowMobileMenu] = useState(false); return ( -