6
6
LoginCardTitle ,
7
7
StyledRouteLink ,
8
8
} from "pages/userAuth/authComponents" ;
9
- import React , { useContext , useMemo , useState } from "react" ;
9
+ import React , { useContext , useState } from "react" ;
10
10
import styled from "styled-components" ;
11
11
import UserApi from "api/userApi" ;
12
12
import { useRedirectUrl } from "util/hooks" ;
@@ -17,7 +17,6 @@ import { AuthContext, useAuthSubmit } from "pages/userAuth/authUtils";
17
17
import { ThirdPartyAuth } from "pages/userAuth/thirdParty/thirdPartyAuth" ;
18
18
import { AUTH_REGISTER_URL , ORG_AUTH_REGISTER_URL } from "constants/routesURL" ;
19
19
import { useLocation , useParams } from "react-router-dom" ;
20
- import { Divider } from "antd" ;
21
20
22
21
const AccountLoginWrapper = styled ( FormWrapperMobile ) `
23
22
display: flex;
@@ -39,13 +38,6 @@ export default function FormLogin(props: FormLoginProps) {
39
38
const location = useLocation ( ) ;
40
39
const orgId = useParams < any > ( ) . orgId ;
41
40
42
- // const organizationId = useMemo(() => {
43
- // if(inviteInfo?.invitedOrganizationId) {
44
- // return inviteInfo?.invitedOrganizationId;
45
- // }
46
- // return orgId;
47
- // }, [ inviteInfo, orgId ])
48
-
49
41
const { onSubmit, loading } = useAuthSubmit (
50
42
( ) =>
51
43
UserApi . formLogin ( {
@@ -84,14 +76,11 @@ export default function FormLogin(props: FormLoginProps) {
84
76
</ ConfirmButton >
85
77
86
78
{ props . organizationId && (
87
- < >
88
- < Divider />
89
- < ThirdPartyAuth
90
- invitationId = { invitationId }
91
- invitedOrganizationId = { props . organizationId }
92
- authGoal = "login"
93
- />
94
- </ >
79
+ < ThirdPartyAuth
80
+ invitationId = { invitationId }
81
+ invitedOrganizationId = { props . organizationId }
82
+ authGoal = "login"
83
+ />
95
84
) }
96
85
</ AccountLoginWrapper >
97
86
< AuthBottomView >
0 commit comments