diff --git a/002_source/ionic_mobile/src/pages/Lesson/LessonContainer/index.tsx b/002_source/ionic_mobile/src/pages/Lesson/LessonContainer/index.tsx index 5049b62..aac79e5 100644 --- a/002_source/ionic_mobile/src/pages/Lesson/LessonContainer/index.tsx +++ b/002_source/ionic_mobile/src/pages/Lesson/LessonContainer/index.tsx @@ -35,7 +35,7 @@ const LessonContainer: React.FC = ({ lesson_type_id: lesson_type if (loading) return ; if (!selected_content) return ; - if (selected_content.length == 0) return <>loading; + if (selected_content.length == 0) return ; return ( <> diff --git a/002_source/ionic_mobile/src/pages/auth/Home/index.tsx b/002_source/ionic_mobile/src/pages/auth/Home/index.tsx index 70c0173..ca40174 100644 --- a/002_source/ionic_mobile/src/pages/auth/Home/index.tsx +++ b/002_source/ionic_mobile/src/pages/auth/Home/index.tsx @@ -20,6 +20,7 @@ import { Paths } from '../../../Paths'; import { useTranslation } from 'react-i18next'; import { useEffect, useState } from 'react'; import { useUser } from '../../../hooks/use-user'; +import { LoadingScreen } from '../../../components/LoadingScreen'; const AuthHome = () => { const { t } = useTranslation(); @@ -42,7 +43,7 @@ const AuthHome = () => { setShowLoading(false); }, []); - if (showLoading) return <>loading; + if (showLoading) return ; if (showError) return <>{showError.message}; return ( diff --git a/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx b/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx index 26b4a91..6d37f6b 100644 --- a/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx +++ b/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx @@ -28,6 +28,7 @@ import { useEffect, useState } from 'react'; import { getUserMetaById } from '../../../db/UserMetas/GetById'; import { useTranslation } from 'react-i18next'; import { UserMeta } from '../../../db/UserMetas/type'; +import { LoadingScreen } from '../../../components/LoadingScreen'; function StudentInfo(): React.JSX.Element { const router = useIonRouter(); @@ -64,7 +65,7 @@ function StudentInfo(): React.JSX.Element { void handleFetchUserMeta(); }, []); - if (showLoading) return <>loading; + if (showLoading) return ; if (showError.show) return <>{showError.message}; return (