Browse Source

Feat & Fix UI Page [Auth Page]

[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat
H0llyW00dzZ 1 year ago
parent
commit
bc00be9065
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/components/auth.tsx

+ 2 - 1
app/components/auth.tsx

@@ -15,6 +15,7 @@ export function AuthPage() {
   const access = useAccessStore();
 
   const goHome = () => navigate(Path.Home);
+  const goChat = () => navigate(Path.Chat);
   const resetAccessCode = () => { access.updateCode(""); access.updateToken(""); }; // Reset access code to empty string
 
   useEffect(() => {
@@ -57,7 +58,7 @@ export function AuthPage() {
         <IconButton
           text={Locale.Auth.Confirm}
           type="primary"
-          onClick={goHome}
+          onClick={goChat}
         />
         <IconButton
           text={Locale.Auth.Later}