update login flow, in the middle,

This commit is contained in:
louiscklaw
2025-05-14 15:17:04 +08:00
parent af160edd42
commit 8d37fba393
29 changed files with 982 additions and 113 deletions

View File

@@ -2,6 +2,7 @@ import { IonButton, IonIcon, useIonRouter } from '@ionic/react';
import { arrowBack } from 'ionicons/icons';
import { LESSON_LINK, VERSIONS } from '../../constants';
import SettingSvg from './image.svg';
import { Paths } from '../../Paths';
interface ContainerProps {
name: string;
@@ -9,6 +10,11 @@ interface ContainerProps {
const SettingContainer: React.FC<ContainerProps> = ({ name }) => {
const router = useIonRouter();
function handleAuthHomeClick() {
router.push(Paths.AuthHome);
}
return (
<div
style={{
@@ -34,6 +40,7 @@ const SettingContainer: React.FC<ContainerProps> = ({ name }) => {
<p>T.B.A.</p>
</div>
<div>{VERSIONS}</div>
<IonButton onClick={handleAuthHomeClick}>AuthHome</IonButton>
<IonButton
onClick={() => {
router.push(LESSON_LINK, undefined, 'replace');