feat: close #2638 hide auth page and use better unauth tips

This commit is contained in:
Yidadaa
2023-08-15 22:50:42 +08:00
parent 840277f584
commit ed62c87156
3 changed files with 21 additions and 4 deletions

View File

@@ -7,6 +7,8 @@ import { useAccessStore } from "../store";
import Locale from "../locales";
import BotIcon from "../icons/bot.svg";
import { useEffect } from "react";
import { getClientConfig } from "../config/client";
export function AuthPage() {
const navigate = useNavigate();
@@ -14,6 +16,13 @@ export function AuthPage() {
const goHome = () => navigate(Path.Home);
useEffect(() => {
if (getClientConfig()?.isApp) {
navigate(Path.Settings);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return (
<div className={styles["auth-page"]}>
<div className={`no-dark ${styles["auth-logo"]}`}>