Skip to content

Commit

Permalink
Feat & Fix UI Page [Auth Page]
Browse files Browse the repository at this point in the history
[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat
  • Loading branch information
H0llyW00dzZ committed Sep 30, 2023
1 parent 4a599e9 commit bc00be9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -57,7 +58,7 @@ export function AuthPage() {
<IconButton
text={Locale.Auth.Confirm}
type="primary"
onClick={goHome}
onClick={goChat}
/>
<IconButton
text={Locale.Auth.Later}
Expand Down

0 comments on commit bc00be9

Please sign in to comment.