Update new path

This commit is contained in:
Chris Hunt 2023-03-29 14:18:17 +01:00
parent b596a031f3
commit f76ee59bcb
No known key found for this signature in database

View File

@ -45,7 +45,7 @@ export default function Header({ searchText, changeSearch }) {
</div>
<nav className='relative z-10 mx-12'>
<a href="/" className={'p-4 inline-block rounded-full border border-solid' + (router.pathname == "/" ? ' border-white/30' : ' border-transparent')}>Library</a>
<Link href="/new" className={'p-4 inline-block rounded-full border border-solid' + (router.pathname.startsWith("/new") ? ' bg-black/10 border-white/30' : ' border-transparent')}>New</Link>
<Link href="/new/" className={'p-4 inline-block rounded-full border border-solid' + (router.pathname.startsWith("/new") ? ' bg-black/10 border-white/30' : ' border-transparent')}>New</Link>
</nav>
<div className="grow flex justify-center relative z-10">
<div className='bg-black/10 shadow border border-1 border-white/30 rounded flex w-full max-w-md'>