Skip to content

Commit

Permalink
Update Navbar.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilMalavi authored Oct 28, 2024
1 parent 67682ca commit f2cdd44
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';

function navbar() {
const [theme, setTheme] = useState('light');
Expand Down Expand Up @@ -44,9 +45,9 @@ function navbar() {
}, [])

const navItems = (<>
<li><a href='/'>Home</a></li>
<li><a href='/books'>Books</a></li>
<li><a href='/contact'>Contact</a></li>
<li><Link to='/'>Home</Link></li>
<li><Link to='/books'>Books</Link></li>
<li><Link to='/contact'>Contact</Link></li>

</>)
// const loginBtn = (<>
Expand Down Expand Up @@ -147,4 +148,4 @@ function navbar() {
)
}

export default navbar
export default navbar

0 comments on commit f2cdd44

Please sign in to comment.