From d698f835695558c5848f4f3f544c24910c125fa8 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 10 Jul 2024 09:57:55 +0200 Subject: [PATCH 1/3] fix function style --- resources/js/LoginLink.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/LoginLink.jsx b/resources/js/LoginLink.jsx index f7bbbfa..179bd09 100644 --- a/resources/js/LoginLink.jsx +++ b/resources/js/LoginLink.jsx @@ -10,7 +10,7 @@ export default function LoginLink({ redirectUrl = null, userAttributes = null, }) { - const submit = (event) => { + function submit(event: FormEvent) { event.preventDefault(); router.post(route('loginLinkLogin'), { email: email, From d117d8d1b93dec48673e94e92dda50d5036f378b Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 10 Jul 2024 09:59:23 +0200 Subject: [PATCH 2/3] fix function style --- resources/js/LoginLink.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/LoginLink.jsx b/resources/js/LoginLink.jsx index 179bd09..c8ef051 100644 --- a/resources/js/LoginLink.jsx +++ b/resources/js/LoginLink.jsx @@ -10,7 +10,7 @@ export default function LoginLink({ redirectUrl = null, userAttributes = null, }) { - function submit(event: FormEvent) { + function submit(event) { event.preventDefault(); router.post(route('loginLinkLogin'), { email: email, From 18bd5ed1a7e72fac761dff24d4846e3307398f95 Mon Sep 17 00:00:00 2001 From: Florian <88294294+fouteox@users.noreply.github.com> Date: Sat, 3 Aug 2024 15:44:23 +0200 Subject: [PATCH 3/3] Update LoginLink.tsx fix typescript --- resources/ts/LoginLink.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/ts/LoginLink.tsx b/resources/ts/LoginLink.tsx index b305e18..52c83d3 100644 --- a/resources/ts/LoginLink.tsx +++ b/resources/ts/LoginLink.tsx @@ -3,12 +3,12 @@ import { router } from '@inertiajs/react' interface LoginLinkProps { className?: string; - email?: string; - guard?: string; - keyId?: string; + email?: string | null; + guard?: string | null; + keyId?: string | null; label?: string; - redirectUrl?: string; - userAttributes?: Record; + redirectUrl?: string | null; + userAttributes?: Record | null; } export default function LoginLink({