diff --git a/app/components/auth.module.scss b/app/components/auth.module.scss index 6630c0613..727e5f0b4 100644 --- a/app/components/auth.module.scss +++ b/app/components/auth.module.scss @@ -1,36 +1,36 @@ -.auth-page { - display: flex; - justify-content: center; - align-items: center; - height: 100%; - width: 100%; - flex-direction: column; +// .auth-page { +// display: flex; +// justify-content: center; +// align-items: center; +// height: 100%; +// width: 100%; +// flex-direction: column; - .auth-logo { - transform: scale(1.4); - } +// .auth-logo { +// transform: scale(1.4); +// } - .auth-title { - font-size: 24px; - font-weight: bold; - line-height: 2; - } +// .auth-title { +// font-size: 24px; +// font-weight: bold; +// line-height: 2; +// } - .auth-tips { - font-size: 14px; - } +// .auth-tips { +// font-size: 14px; +// } - .auth-input { - margin: 3vh 0; - } +// .auth-input { +// margin: 3vh 0; +// } - .auth-actions { - display: flex; - justify-content: center; - flex-direction: column; +// .auth-actions { +// display: flex; +// justify-content: center; +// flex-direction: column; - button:not(:last-child) { - margin-bottom: 10px; - } - } -} +// button:not(:last-child) { +// margin-bottom: 10px; +// } +// } +// } diff --git a/app/components/auth.tsx b/app/components/auth.tsx index 57118349b..5e872cbdb 100644 --- a/app/components/auth.tsx +++ b/app/components/auth.tsx @@ -1,97 +1,97 @@ -import styles from "./auth.module.scss"; -import { IconButton } from "./button"; +// import styles from "./auth.module.scss"; +// import { IconButton } from "./button"; -import { useNavigate } from "react-router-dom"; -import { Path } from "../constant"; -import { useAccessStore } from "../store"; -import Locale from "../locales"; +// import { useNavigate } from "react-router-dom"; +// import { Path } from "../constant"; +// import { useAccessStore } from "../store"; +// import Locale from "../locales"; -import BotIcon from "../icons/bot.svg"; -import { useEffect } from "react"; -import { getClientConfig } from "../config/client"; +// import BotIcon from "../icons/bot.svg"; +// import { useEffect } from "react"; +// import { getClientConfig } from "../config/client"; -export function AuthPage() { - const navigate = useNavigate(); - const accessStore = useAccessStore(); +// export function AuthPage() { +// const navigate = useNavigate(); +// const accessStore = useAccessStore(); - const goHome = () => navigate(Path.Home); - const goChat = () => navigate(Path.Chat); - const resetAccessCode = () => { - accessStore.update((access) => { - access.openaiApiKey = ""; - access.accessCode = ""; - }); - }; // Reset access code to empty string +// const goHome = () => navigate(Path.Home); +// const goChat = () => navigate(Path.Chat); +// const resetAccessCode = () => { +// accessStore.update((access) => { +// access.openaiApiKey = ""; +// access.accessCode = ""; +// }); +// }; // Reset access code to empty string - useEffect(() => { - if (getClientConfig()?.isApp) { - navigate(Path.Settings); - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); +// useEffect(() => { +// if (getClientConfig()?.isApp) { +// navigate(Path.Settings); +// } +// // eslint-disable-next-line react-hooks/exhaustive-deps +// }, []); - return ( -