From 1a0f3b1fb8297222204038db163a65aa7735eca3 Mon Sep 17 00:00:00 2001 From: john Date: Fri, 7 Jun 2024 18:41:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 隐藏邮箱 --- src/pages/SignIn.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/pages/SignIn.tsx b/src/pages/SignIn.tsx index e2d10b4..ec30525 100644 --- a/src/pages/SignIn.tsx +++ b/src/pages/SignIn.tsx @@ -2,11 +2,8 @@ import { useState, useEffect } from "react"; import { useTranslation, getI18n } from "react-i18next"; import phoneIconSelect from "../assets/iconfont/phone_Select.svg"; import phoneIcon from "../assets/iconfont/phone.svg"; -import emailIcon from "../assets/iconfont/email.svg"; -import emailIconSelect from "../assets/iconfont/email_Select.svg"; import Logo from "../assets/img/logo.png"; import "./SignIn.scss"; -import EmailForm from "../components/EmailForm"; import PhoneForm from "../components/PhoneForm"; import { useNavigate } from "react-router-dom"; import useUserStore from "../store/user.ts"; @@ -17,7 +14,7 @@ function SignIn() { const lang: string = getI18n().language; const [visible, setVisible] = useState(false); - const [selectIndex, setSelectIndex] = useState(0); + const [selectIndex, setSelectIndex] = useState(1); const { previousPathName, UpdatePreviousPathName } = useUserStore(); const navigate = useNavigate(); const { UpdateLang } = useUserStore(); @@ -103,13 +100,13 @@ function SignIn() {
-
{t("E-mail")} -
+
*/}
{t("phone")}
- {selectIndex === 0 && } + {/* {selectIndex === 0 && } */} {selectIndex === 1 && }