apply new-link codemod

This commit is contained in:
Thomas Ruoff
2022-10-26 20:19:18 +02:00
parent d14ccbb234
commit 9e834568a5
7 changed files with 183 additions and 181 deletions

View File

@@ -37,15 +37,17 @@ export default function Navigation() {
<span className="font-extrabold">{pathLabel}</span>
</h2>
{status === 'authenticated' && data.user.email && (
<Link href="/admin">
<a className="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">
<Link
href="/admin"
className="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">
Buchungen
</a>
</Link>
)}
<div className="flex-grow" />
<User />
</>
</div>
)
);
}