Skip to content

Commit 8b8669a

Browse files
authored
Use inertia link tag instead of html a tag (#22)
* Use inertia link tag instead of html a tag * Added missing import
1 parent 27c8693 commit 8b8669a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/js/layouts/auth/auth-card-layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import AppLogoIcon from '@/components/app-logo-icon';
22
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
3+
import { Link } from '@inertiajs/react';
34

45
export default function AuthCardLayout({
56
children,
@@ -14,11 +15,11 @@ export default function AuthCardLayout({
1415
return (
1516
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
1617
<div className="flex w-full max-w-md flex-col gap-6">
17-
<a href="#" className="flex items-center gap-2 self-center font-medium">
18+
<Link href={route('home')} className="flex items-center gap-2 self-center font-medium">
1819
<div className="flex h-9 w-9 items-center justify-center">
1920
<AppLogoIcon className="size-9 fill-current text-black dark:text-white" />
2021
</div>
21-
</a>
22+
</Link>
2223

2324
<div className="flex flex-col gap-6">
2425
<Card className="rounded-xl">

resources/js/pages/auth/forgot-password.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export default function ForgotPassword({ status }: { status?: string }) {
5151
Email password reset link
5252
</Button>
5353
</div>
54-
5554
</form>
5655

5756
<div className="text-muted-foreground space-x-1 text-center text-sm">

0 commit comments

Comments
 (0)