Fix eslint errors in sign-in page
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { useTranslate } from "@probo/i18n";
|
|||||||
import { Button, Field, Google, Microsoft, useToast } from "@probo/ui";
|
import { Button, Field, Google, Microsoft, useToast } from "@probo/ui";
|
||||||
import { type ComponentProps, type FormEventHandler, Suspense } from "react";
|
import { type ComponentProps, type FormEventHandler, Suspense } from "react";
|
||||||
import { useLazyLoadQuery, useMutation } from "react-relay";
|
import { useLazyLoadQuery, useMutation } from "react-relay";
|
||||||
import { Link, useLocation, matchPath } from "react-router";
|
import { Link, matchPath, useLocation } from "react-router";
|
||||||
import { graphql } from "relay-runtime";
|
import { graphql } from "relay-runtime";
|
||||||
|
|
||||||
import type { SignInPageMutation } from "#/__generated__/iam/SignInPageMutation.graphql";
|
import type { SignInPageMutation } from "#/__generated__/iam/SignInPageMutation.graphql";
|
||||||
@@ -68,10 +68,10 @@ function OIDCButtons() {
|
|||||||
variant="secondary"
|
variant="secondary"
|
||||||
className="w-full h-10"
|
className="w-full h-10"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.location.href =
|
window.location.href
|
||||||
provider.loginURL +
|
= provider.loginURL
|
||||||
"?continue=" +
|
+ "?continue="
|
||||||
encodeURIComponent(
|
+ encodeURIComponent(
|
||||||
safeContinueUrl.pathname + safeContinueUrl.search,
|
safeContinueUrl.pathname + safeContinueUrl.search,
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
@@ -93,8 +93,8 @@ export default function SignInPage() {
|
|||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const safeContinueUrl = useSafeContinueUrl();
|
const safeContinueUrl = useSafeContinueUrl();
|
||||||
|
|
||||||
const [signIn, isSigningIn] =
|
const [signIn, isSigningIn]
|
||||||
useMutation<SignInPageMutation>(signInMutation);
|
= useMutation<SignInPageMutation>(signInMutation);
|
||||||
|
|
||||||
const handleSubmit: FormEventHandler<HTMLFormElement> = (e) => {
|
const handleSubmit: FormEventHandler<HTMLFormElement> = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user