fixing titles and stuff
This commit is contained in:
@@ -11,9 +11,11 @@ import ThemeToggle from "@/components/ThemeToggle";
|
||||
function NavLink({
|
||||
href,
|
||||
children,
|
||||
title
|
||||
}: {
|
||||
href: string;
|
||||
children: React.ReactNode;
|
||||
title?: string;
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
const active = pathname === href;
|
||||
@@ -21,6 +23,7 @@ function NavLink({
|
||||
return (
|
||||
<Link
|
||||
href={href}
|
||||
title={title}
|
||||
className={[
|
||||
"text-xs font-medium transition-colors",
|
||||
active ? "text-zinc-100" : "text-zinc-400 hover:text-zinc-100",
|
||||
@@ -60,7 +63,7 @@ export function TopNav() {
|
||||
<span className="text-xs text-zinc-500">Checking session…</span>
|
||||
) : isAuthenticated ? (
|
||||
<>
|
||||
<NavLink href="/vault">Vault</NavLink>
|
||||
<NavLink href="/vault" title={"Your builds"}>Vault</NavLink>
|
||||
|
||||
{/* Email/displayName links to Account */}
|
||||
<Link
|
||||
|
||||
Reference in New Issue
Block a user