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
This commit is contained in:
H0llyW00dzZ 2023-09-30 22:33:18 +07:00
parent 4a599e986f
commit bc00be9065
No known key found for this signature in database
GPG Key ID: 05C7FFFC0845C930

View File

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