Skip to content

Commit 3e5f9d1

Browse files
committed
fixing typescript warning/errors
1 parent 104a291 commit 3e5f9d1

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

resources/js/layouts/auth-layout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ import AuthLayoutTemplate from '@/layouts/auth/auth-simple-layout';
22

33
export default function AuthLayout({
44
children,
5-
...props // Collect all other props passed to this component
5+
title,
6+
description,
7+
...props
68
}: {
79
children: React.ReactNode;
10+
title: string;
11+
description: string;
812
}) {
9-
return <AuthLayoutTemplate {...props}>{children}</AuthLayoutTemplate>;
13+
return <AuthLayoutTemplate title={title} description={description} {...props}>{children}</AuthLayoutTemplate>;
1014
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import AppLogoIcon from '@/components/app-logo-icon';
22
import { Link, usePage } from '@inertiajs/react';
3+
import { type SharedData } from '@/types';
34

45
interface AuthLayoutProps {
56
children: React.ReactNode;
@@ -8,7 +9,7 @@ interface AuthLayoutProps {
89
}
910

1011
export default function AuthSplitLayout({ children, title, description }: AuthLayoutProps) {
11-
const { name, quote } = usePage().props;
12+
const { name, quote } = usePage<SharedData>().props;
1213

1314
return (
1415
<div className="relative grid h-dvh flex-col items-center justify-center px-8 sm:px-0 lg:max-w-none lg:grid-cols-2 lg:px-0">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function ConfirmPassword() {
2929
<Head title="Confirm Password" />
3030

3131
<form onSubmit={submit}>
32-
<div class="space-y-6">
32+
<div className="space-y-6">
3333
<div className="grid gap-2">
3434
<Input
3535
id="password"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function ForgotPassword({ status }: { status?: string }) {
2525
<AuthLayout title="Forgot Password" description="Enter your email to receive a password reset link">
2626
<Head title="Forgot Password" />
2727

28-
{status && <div className="mb-4 text-sm font-medium text-green-600">{status}</div>}
28+
{status && <div className="mb-4 text-sm font-medium text-center text-green-600">{status}</div>}
2929

3030
<div className="space-y-6">
3131
<form onSubmit={submit}>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function ResetPassword({ token, email }: ResetPasswordProps) {
7272
</div>
7373

7474
<div className="grid gap-2">
75-
<Label htmlFor="password_confirmation">Confirm Password</Label>
75+
<Label htmlFor="password_confirmation">Confirm password</Label>
7676
<Input
7777
id="password_confirmation"
7878
type="password"

0 commit comments

Comments
 (0)