@@ -10,7 +10,6 @@ import { Button } from 'components/ui/button';
1010import { UPasswordInput } from 'components/core/u-password-input' ;
1111import { Captcha } from 'features/captcha' ;
1212import { useAuthStore } from 'state/store/auth' ;
13- import { useToast } from 'hooks/use-toast' ;
1413import { useSigninMutation } from '../../hooks/use-auth' ;
1514import ErrorAlert from '../../../../components/blocks/error-alert/error-alert' ;
1615import { SignInResponse } from '../../services/auth.service' ;
@@ -60,7 +59,6 @@ export const SigninForm = ({ loginOption }: SigninProps) => {
6059 const navigate = useNavigate ( ) ;
6160 const { t } = useTranslation ( ) ;
6261 const { login } = useAuthStore ( ) ;
63- const { toast } = useToast ( ) ;
6462 const [ captchaToken , setCaptchaToken ] = useState ( '' ) ;
6563 const [ failedAttempts , setFailedAttempts ] = useState ( 0 ) ;
6664 const [ showCaptcha , setShowCaptcha ] = useState ( false ) ;
@@ -102,11 +100,6 @@ export const SigninForm = ({ loginOption }: SigninProps) => {
102100 } else {
103101 login ( res . access_token , res . refresh_token ) ;
104102 navigate ( '/' ) ;
105- toast ( {
106- variant : 'success' ,
107- title : t ( 'SUCCESS' ) ,
108- description : t ( 'LOGIN_SUCCESSFULLY' ) ,
109- } ) ;
110103 }
111104 } catch ( _error ) {
112105 if ( captchaEnabled ) {
@@ -128,13 +121,8 @@ export const SigninForm = ({ loginOption }: SigninProps) => {
128121 const res = await mutateAsync ( { grantType : 'social' , code, state } ) ;
129122 login ( res . access_token , res . refresh_token ) ;
130123 navigate ( '/' ) ;
131- toast ( {
132- variant : 'success' ,
133- title : t ( 'SUCCESS' ) ,
134- description : t ( 'LOGIN_SUCCESSFULLY' ) ,
135- } ) ;
136124 } ,
137- [ login , mutateAsync , navigate , t , toast ]
125+ [ login , mutateAsync , navigate ]
138126 ) ;
139127
140128 useEffect ( ( ) => {
0 commit comments