Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions src/modules/auth/components/signInWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
import { ConnectorsList } from './connector';
import { SigninContainer, SigninContainerMobile } from './container';
import { SignInFooter } from './footer';
import { SocialSignIn } from './social';
import {
WebAuthnAccountCreated,
WebAuthnSignIn,
Expand Down Expand Up @@ -56,11 +55,11 @@ const SignInWrapper = (props: SignInWrapperProps) => {
createdAcccountUsername,
mode,
currentOpenConnector,
unableToConnectWithSocial,
//unableToConnectWithSocial,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 IMPORTANT: Remove commented code instead of leaving it in codebase

Problem: Project standards explicitly state to remove commented code. Lines 58, 61, 156-158, and 187-190 contain commented out social login code that should be deleted.

Suggestion: Delete all commented lines related to social login functionality. If you need to preserve this for future reference, create a separate branch or document the removal in the commit message.

handleInputChange,
handleSelectWallet,
handleRegister,
handleSocialConnect,
//handleSocialConnect,
setMode,
} = props;

Expand Down Expand Up @@ -154,11 +153,11 @@ const SignInWrapper = (props: SignInWrapperProps) => {
/>

{/* Show with hidden for prevent flick in the box */}
<SocialSignIn
{/* <SocialSignIn
hidden
onConnect={handleSocialConnect}
unableToConnect={unableToConnectWithSocial}
/>
/> */}

{/* Show with hidden for prevent flick in the box */}
<ConnectorsList
Expand All @@ -170,7 +169,11 @@ const SignInWrapper = (props: SignInWrapperProps) => {
</Box>
)}
{!isLoading && (
<VStack w="full" gap={8} maxW={{ md: 440, base: 'unset' }}>
<VStack
w="full"
gap={{ base: 6, sm: 8 }}
maxW={{ md: 440, base: 'unset' }}
>
<WebAuthnSignIn
formData={formData}
formState={formState}
Expand All @@ -181,10 +184,10 @@ const SignInWrapper = (props: SignInWrapperProps) => {
onModeChange={setMode}
/>

<SocialSignIn
{/* <SocialSignIn
onConnect={handleSocialConnect}
unableToConnect={unableToConnectWithSocial}
/>
/> */}

<ConnectorsList
connectors={connectors}
Expand Down
Loading