We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51072c9 commit f6bcaecCopy full SHA for f6bcaec
src/features/navbar/Navbar.js
@@ -208,8 +208,8 @@ function NavBar({ children }) {
208
{userNavigation.map((item) => (
209
<Disclosure.Button
210
key={item.name}
211
- as="a"
212
- href={item.href}
+ as={Link} // change as=a to as=Link to use Disclosure.Button as a Link (react-router-dom)
+ to={item.link} // {link: "/orders"}
213
className="block rounded-md px-3 py-2 text-base font-medium text-gray-400 hover:bg-gray-700 hover:text-white"
214
>
215
{item.name}
0 commit comments