Skip to content

Commit

Permalink
Fix navbar error
Browse files Browse the repository at this point in the history
  • Loading branch information
Errytagedesign committed Aug 26, 2023
1 parent da3b297 commit 420690d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ button {
font-family: 'Montserrat', sans-serif;
color: #121212;
letter-spacing: 1.9px;
font-size: 0.8rem;
font-weight: 400;
}

.active-link {
Expand Down
4 changes: 2 additions & 2 deletions src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ function NavBar() {
<ul className="nav-links">
<li>
<NavLink
className={({ isActive }) => (isActive ? 'active-link' : 'nav-link')}
className={({ isActive }) => (isActive ? 'active-link nav-link' : 'nav-link')}
to="/"
>
BOOKS
</NavLink>
</li>
<li>
<NavLink
className={({ isActive }) => (isActive ? 'active-link' : 'nav-link')}
className={({ isActive }) => (isActive ? 'active-link nav-link' : 'nav-link')}
to="/categories"
>
CATEGORIES
Expand Down

0 comments on commit 420690d

Please sign in to comment.