File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,17 +3,17 @@ import { Message } from "@prefabs.tech/react-ui";
33import { FC , useState } from "react" ;
44import { toast } from "react-toastify" ;
55
6+ import { DEFAULT_PATHS } from "@/constants" ;
7+ import { login } from "@/supertokens" ;
8+ import { LinkType } from "@/types/types" ;
9+
610import { LoginForm } from "./LoginForm" ;
711import { useConfig , useUser } from "../../hooks" ;
812import { verifySessionRoles } from "../../supertokens/helpers" ;
913import { AuthLinks } from "../AuthLinks" ;
1014
1115import type { LoginCredentials , SignInUpPromise } from "../../types" ;
1216
13- import { DEFAULT_PATHS } from "@/constants" ;
14- import { login } from "@/supertokens" ;
15- import { LinkType } from "@/types/types" ;
16-
1717interface IProperties {
1818 handleSubmit ?: ( credential : LoginCredentials ) => void ;
1919 onLoginFailed ?: ( error : Error ) => void ;
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ import { useState } from "react";
44import { useSearchParams } from "react-router-dom" ;
55import { toast } from "react-toastify" ;
66
7- import { ForgotPasswordForm } from "../components/ForgotPasswordForm" ;
8-
97import { AuthLinks } from "@/components/AuthLinks" ;
108import { DEFAULT_PATHS } from "@/constants" ;
119import { useConfig } from "@/hooks" ;
1210import { forgotPassword } from "@/supertokens" ;
1311import { LinkType } from "@/types/types" ;
1412
13+ import { ForgotPasswordForm } from "../components/ForgotPasswordForm" ;
14+
1515export const ForgotPassword = ( { centered = true } : { centered ?: boolean } ) => {
1616 const { t } = useTranslation ( "user" ) ;
1717 const [ loading , setLoading ] = useState < boolean > ( false ) ;
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import { useState } from "react";
44import { useNavigate } from "react-router-dom" ;
55import { toast } from "react-toastify" ;
66
7- import { useConfig } from "../hooks" ;
8-
97import { ResetPasswordForm } from "@/components" ;
108import { DEFAULT_PATHS } from "@/constants" ;
119import { resetPassword } from "@/supertokens" ;
1210
11+ import { useConfig } from "../hooks" ;
12+
1313export const ResetPassword = ( { centered = true } : { centered ?: boolean } ) => {
1414 const { t } = useTranslation ( "user" ) ;
1515 const config = useConfig ( ) ;
You can’t perform that action at this time.
0 commit comments