add search icon to the docs search button

This commit is contained in:
Lee
2024-04-21 17:13:46 +01:00
parent ab2716a8c9
commit 738fcb8e24
4 changed files with 13 additions and 8 deletions

View File

@ -61,7 +61,7 @@ export default function NavBar(): ReactElement {
<div className="absolute inset-x-0 flex justify-center">
<div className="flex gap-4">
{pages.map((page, index) => {
const isActive = path.includes(page.url);
const isActive: boolean = path ? path.includes(page.url) : false;
return (
<HrefButton