From 75ee19231a4950e040f1e04ad4ae85f284f2d2d9 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sat, 16 Aug 2025 14:52:48 +0330 Subject: [PATCH] login and register merge: --- .env | 2 +- src/pages/auth/components/LoginStep1.tsx | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.env b/.env index ab2c418..60809ca 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ VITE_TOKEN_NAME = 'dsc_token' VITE_REFRESH_TOKEN_NAME = 'dsc_refresh_token' VITE_BASE_URL = 'https://api.danakcorp.com' -# VITE_BASE_URL = 'http://192.168.1.113:4000' \ No newline at end of file +# VITE_BASE_URL = 'http://192.168.1.119:4001' \ No newline at end of file diff --git a/src/pages/auth/components/LoginStep1.tsx b/src/pages/auth/components/LoginStep1.tsx index 62f11c3..d599430 100644 --- a/src/pages/auth/components/LoginStep1.tsx +++ b/src/pages/auth/components/LoginStep1.tsx @@ -7,8 +7,6 @@ import * as Yup from 'yup' import { useAuthStore } from '../store/AuthStore' import Error from '../../../components/Error' import Button from '../../../components/Button' -import { Link } from 'react-router-dom' -import { Pages } from '../../../config/Pages' import { isEmail } from '../../../config/func' import { useCheckHasAccount, useLoginWithOtp } from '../hooks/useAuthData' import { ErrorType } from '../../../helpers/types' @@ -94,16 +92,16 @@ const LoginStep1: FC = () => { isLoading={loginWithOtp.isPending || checkHasAccount.isPending} /> -
+ {/*

{t('auth.have_account')}

{t('auth.register')}
-
+
*/} - +
{t('auth.old_version')}