Skip to content

Commit

Permalink
Merge pull request #37 from fouteox/main
Browse files Browse the repository at this point in the history
Fix function style
  • Loading branch information
sebastiandedeyne authored Aug 7, 2024
2 parents 1bf6bea + d321193 commit 1c87828
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/js/LoginLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function LoginLink({
redirectUrl = null,
userAttributes = null,
}) {
const submit = (event) => {
function submit(event) {
event.preventDefault();
router.post(route('loginLinkLogin'), {
email: email,
Expand Down
10 changes: 5 additions & 5 deletions resources/ts/LoginLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>;
redirectUrl?: string | null;
userAttributes?: Record<string, any> | null;
}

export default function LoginLink({
Expand Down

0 comments on commit 1c87828

Please sign in to comment.