|
@@ -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"]}`}>
|