import { lazy } from 'react'; // project import import Loadable from 'components/Loadable'; // import MinimalLayout from 'layout/MinimalLayout'; import MainLayout from 'layout/MainLayout'; // render - login const AuthLogin = Loadable(lazy(() => import('pages/authentication/Login'))); const AuthRegister = Loadable(lazy(() => import('pages/authentication/RegisterCustom'))); const RegisterForm = Loadable(lazy(() => import('pages/authentication/Register'))); const BusRegisterForm = Loadable(lazy(() => import('pages/authentication/BusRegister'))); const IAmSmartRegister = Loadable(lazy(() => import('pages/authentication/IAmSmartRegister'))); const ErrorPage = Loadable(lazy(() => import('pages/extra-pages/ErrorPage'))); const ForgotPassword = Loadable(lazy(() => import('pages/authentication/ForgotPassword'))); const AfterForgotPasswordPage = Loadable(lazy(() => import('pages/authentication/ForgotPassword/AfterForgotPasswordPage'))); const ForgotPassword_Callback = Loadable(lazy(() => import('pages/authentication/ForgotPassword/AuthCallback'))); const ForgotPassword_Success = Loadable(lazy(() => import('pages/authentication/ForgotPassword/AuthCallback/ResetPasswordSuccess'))); const ForgotUsername = Loadable(lazy(() => import('pages/authentication/ForgotUsername'))); const AfterForgotUsernamePage = Loadable(lazy(() => import('pages/authentication/ForgotUsername/AfterForgotPasswordPage'))); const ForgotUsername_Callback = Loadable(lazy(() => import('pages/authentication/ForgotUsername/AuthCallback'))); const ForgotUsername_Success = Loadable(lazy(() => import('pages/authentication/ForgotUsername/AuthCallback/ResetPasswordSuccess'))); const IAmSmart_DirectLoginCallback = Loadable(lazy(() => import('pages/iAmSmart/DirectLoginCallback'))); //const IAmSmart_FallCallback = Loadable(lazy(() => import('pages/iAmSmart/FallCallback'))); const IAmSmart_FailCallback = Loadable(lazy(() => import('pages/iAmSmart/FailCallback'))); const FailCallback_VerifyMail = Loadable(lazy(() => import('pages/iAmSmart/FailCallback_VerifyMail'))); const IAmSmart_SuccessCallback = Loadable(lazy(() => import('pages/iAmSmart/SuccessCallback'))); const IAmSmart_AuthCallback = Loadable(lazy(() => import('pages/iAmSmart/AuthCallback'))); const IAmSmart_RegistryCallback = Loadable(lazy(() => import('pages/iAmSmart/RegistryCallback'))); //TODO: this page for testing only, please remove at prod const VerifyPage = Loadable(lazy(() => import('pages/authentication/Verify'))); const Testfps = Loadable(lazy(() => import('pages/Payment/FPS/FPSTest'))); const Payment_FPS_CallBack = Loadable(lazy(() => import('pages/Payment/FPS/fpscallback'))); // ==============================|| AUTH ROUTING ||============================== // const LoginRoutes = { path: '/', element: , children: [ { path: 'login', element: }, { path: 'register', element: }, { path: 'registerFrom', element: }, { path: 'registerFromOrganization', element: }, { path: 'iAmSmartRegisterFrom', element: }, { path: 'error', element: }, { path: 'iamsmart/logincallback', element: }, { path: 'iamsmart/loginfallback', element: }, { path: 'iamsmart/notverify', element: }, { path: 'iamsmart/authcallback', element: }, { path: 'iamsmart/registrycallback', element: }, { path: 'iamsmart/loginFail', element: }, { path: 'iamsmart/loginSucess', element: }, { path: 'verify/:verifyCode/:email', element: }, { path: 'testfps', element: }, { path: 'testfpscallback', element: }, { path: 'forgot/password', element: }, { path: 'forgot/password/sent', element: }, { path: 'forgot/password/verify/:verifyCode/:email', element: }, { path: 'forgot/password/success', element: }, { path: 'forgot/username', element: }, { path: 'forgot/username/sent', element: }, { path: 'forgot/username/verify/:verifyCode/:email', element: }, { path: 'forgot/username/success', element: }, ] }; export default LoginRoutes;