-
-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #524 from tishubohra/main
subscript_of_bookmark
- Loading branch information
Showing
5 changed files
with
30 additions
and
129 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
import React from "react"; | ||
import { useSelector } from "react-redux"; | ||
import "../../style/Navbar.css"; | ||
import NavbarItem from "./NavbarItem"; | ||
|
||
function NavbarCenter(){ | ||
function NavbarCenter() { | ||
const totalBookmarks = useSelector((state) => state.SourceReducer.totalBookmarks) || 0; | ||
|
||
return ( | ||
<span className="navbar-center"> | ||
<ul className="mb-2 navbar-content"> | ||
<nav className="navbar-center"> | ||
<ul className="navbar-content mb-2"> | ||
<li className="nav-item"> | ||
<NavbarItem description="Home" to="/" /> | ||
</li> | ||
<li className="nav-item"> | ||
<NavbarItem description="BookMark" to="/bookmark" /> | ||
<NavbarItem description={`Bookmark (${totalBookmarks})`} to="/bookmark" /> | ||
</li> | ||
<li className="nav-item"> | ||
<NavbarItem description="Open Source" to="/open-source"/> | ||
<NavbarItem description="Open Source" to="/open-source" /> | ||
</li> | ||
<li className="nav-item"> | ||
<NavbarItem description="About Us" to="/about" /> | ||
</li> | ||
</ul> | ||
</span> | ||
</nav> | ||
); | ||
}; | ||
} | ||
|
||
export default NavbarCenter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,4 @@ root.render( | |
</Provider> | ||
</BrowserRouter> | ||
</React.StrictMode> | ||
); | ||
); |