| @@ -12,36 +12,18 @@ import { | |||
| REGISTER_PAGE, | |||
| REGISTER_SUCCESSFUL_PAGE, | |||
| } from './constants/pages'; | |||
| // import LoginPage from './pages/LoginPage/LoginPage'; | |||
| import LoginPage from './pages/LoginPage/LoginPageMUI'; | |||
| // import HomePage from './pages/HomePage/HomePage'; | |||
| import HomePage from './pages/HomePage/HomePageMUI'; | |||
| import NotFoundPage from './pages/ErrorPages/NotFoundPage'; | |||
| import ErrorPage from './pages/ErrorPages/ErrorPage'; | |||
| // import ForgotPasswordPage from './pages/ForgotPasswordPage/ForgotPasswordPage'; | |||
| import ForgotPasswordPage from './pages/ForgotPasswordPage/ForgotPasswordPageMUI'; | |||
| import PrivateRoute from './components/Router/PrivateRoute'; | |||
| import MailSent from './pages/ForgotPasswordPage/ForgotPasswordMailSent/MailSent'; | |||
| import Register from './pages/RegisterPages/Register/Register'; | |||
| import RegisterSuccessful from './pages/RegisterPages/RegisterSuccessful.js/RegisterSuccessful'; | |||
| // import { useDispatch, useSelector } from 'react-redux'; | |||
| // import {ReactComponent as Logo} from "./assets/images/svg/big-logo-vertical.svg"; | |||
| // import FullPageLoader from './components/Loader/FullPageLoader'; | |||
| // import { APP_LOADING } from './store/actions/app/appActionConstants'; | |||
| // import { setAppReady } from './store/actions/app/appActions'; | |||
| const AppRoutes = () => { | |||
| // const dispatch = useDispatch(); | |||
| // const isLoading = useSelector(state => state.loading.[APP_LOADING]); | |||
| // if (isLoading) { | |||
| // setTimeout(() => { | |||
| // dispatch(setAppReady(true)) | |||
| // }, 0) | |||
| // return ( | |||
| // <FullPageLoader /> | |||
| // ) | |||
| // } | |||
| return ( | |||
| <Switch> | |||
| <Route exact path={BASE_PAGE} component={LoginPage} /> | |||