diff --git a/packages/experience-legacy/src/containers/SocialLinkAccount/index.tsx b/packages/experience-legacy/src/containers/SocialLinkAccount/index.tsx index a297e7ee6..dfb70a3d1 100644 --- a/packages/experience-legacy/src/containers/SocialLinkAccount/index.tsx +++ b/packages/experience-legacy/src/containers/SocialLinkAccount/index.tsx @@ -1,6 +1,7 @@ import { SignInIdentifier, SignInMode } from '@logto/schemas'; import classNames from 'classnames'; import type { TFuncKey } from 'i18next'; +import { useState } from 'react'; import { useTranslation } from 'react-i18next'; import Button from '@/components/Button'; @@ -44,6 +45,8 @@ const SocialLinkAccount = ({ connectorId, className, relatedUser }: Props) => { const { signUpMethods, signInMode } = useSieMethods(); const bindSocialRelatedUser = useBindSocialRelatedUser(); + const [isBindingUser, setIsBindingUser] = useState(false); + const registerWithSocial = useSocialRegister(connectorId); const actionText = getCreateAccountActionText(signUpMethods); @@ -57,11 +60,14 @@ const SocialLinkAccount = ({ connectorId, className, relatedUser }: Props) => {