From 91ca416c9f2318483a1f21fef7d9824188dc8a9a Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Tue, 22 Dec 2020 17:27:45 -0600 Subject: [PATCH] Icon component --- components/pages/Home.jsx | 4 ++-- components/ui/Button.jsx | 2 +- components/ui/Icon.jsx | 19 ++++++++++++++++++ components/ui/Menu.jsx | 20 +++++++++---------- components/ui/Modal.jsx | 9 ++++----- components/ui/Nav.jsx | 2 +- components/ui/SafeArea.jsx | 8 ++++++++ components/ui/Tab.jsx | 25 +++++++++++++++++------- package-lock.json | 6 ++++++ package.json | 1 + pages/index.js | 30 +++++++++++++++++++++------- styles/global.css | 40 ++++++++++++++++++++++++++++++++++++++ 12 files changed, 132 insertions(+), 34 deletions(-) create mode 100644 components/ui/Icon.jsx diff --git a/components/pages/Home.jsx b/components/pages/Home.jsx index f72ed92..ca7a626 100644 --- a/components/pages/Home.jsx +++ b/components/pages/Home.jsx @@ -21,8 +21,8 @@ const PostCard = ({ title, type, text, author, image }) => ( const Home = ({ selected }) => { return ( - {homeItems.map(i => ( - + {homeItems.map((i, index) => ( + ))} ); diff --git a/components/ui/Button.jsx b/components/ui/Button.jsx index e538362..207b33a 100644 --- a/components/ui/Button.jsx +++ b/components/ui/Button.jsx @@ -3,7 +3,7 @@ import classNames from 'classnames'; const Button = ({ children, className, ...props }) => (