diff --git a/src/App.js b/src/App.js index bdd81310..de4f9949 100644 --- a/src/App.js +++ b/src/App.js @@ -111,20 +111,50 @@ function App() { return (
+ +
+
+ + + + +
+ + {numberOfResults > 0 ?

{numberOfResults} Bookmarks found

: null} + + + + + {numberOfResults === 0 ? : null} + + {sortBox ? : null} + + {filterBox ? : null} + + {newBox ? tags} + /> : null} + + {loader ? : null} +
+ - -
- - - - -
- - {numberOfResults > 0 ?

{numberOfResults} Bookmarks found

: null} - - - - + - - {numberOfResults === 0 ? : null} - - {sortBox ? : null} - - {filterBox ? : null} - - {newBox ? tags} - /> : null} - - {loader ? : null}
} /> } /> - + />} /> ); diff --git a/src/componets/SideBar.js b/src/componets/SideBar.js index 102273d0..35a2aae8 100644 --- a/src/componets/SideBar.js +++ b/src/componets/SideBar.js @@ -16,9 +16,9 @@ const SideBar = ({ tags, handleToggleSidebar, toggle }) => { -

View All

+

Show Everything

- + {tags.map((e, i) => { const path = `/tags/${e}` return {e} diff --git a/src/routes/Tags.js b/src/routes/Tags.js index be30220b..6fa643d7 100644 --- a/src/routes/Tags.js +++ b/src/routes/Tags.js @@ -1,18 +1,20 @@ import { useParams } from 'react-router-dom'; import List from '../componets/List'; -const Tags = ({ data }) => { +const Tags = ({ data, tags, SetLoader, lightMode, reFetch }) => { const { tagId } = useParams(); const dataWithMatchingTag = data.filter((e) => { return e.tag.includes(tagId) }); - console.log(dataWithMatchingTag) - return (
) diff --git a/src/styles/App.css b/src/styles/App.css index 6232a7de..51050c60 100644 --- a/src/styles/App.css +++ b/src/styles/App.css @@ -23,11 +23,9 @@ .App { min-height: 100vh; - display: flex; } .content { - width: 100%; padding: 20px; }