update login flow, in the middle,
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user