import {Route} from 'react-router-dom'; import DashboardLayout from './layout/DashboardLayout'; import MainLayout from './layout/MainLayout'; /*==================================== Admin ===================================*/ import AdminMeetings from './admin/meeting'; import AdminMeetingDetail from './admin/meeting/detail'; import AdminMeetingEdit from './admin/meeting/edit'; import AdminChilds from './admin/child'; import AdminChildDetail from './admin/child/detail'; import AdminChildEdit from './admin/child/edit'; import AdminChildPasswordEdit from './admin/child/password_edit'; import AdminParents from './admin/parent'; import AdminParentDetail from './admin/parent/detail'; import AdminParentEdit from './admin/parent/edit'; import AdminParentPasswordEdit from './admin/parent/password_edit'; import AdminParentAdd from './admin/parent/add'; import AdminSide from './admin/side'; import AdminLogin from './admin/login'; /*==================================== p-account ===================================*/ import ParentMeetings from './parent/meeting'; import ParentMeetingDetail from './parent/meeting/detail'; import ParentMeetingAdd from './parent/meeting/add'; import ParentMeetingEdit from './parent/meeting/edit'; import ParentFavorite from './parent/favorite'; import ParentSearch from './parent/search'; import ParentChilds from './parent/child'; import ParentChildAdd from './parent/child/add'; import ParentChildEdit from './parent/child/edit'; import ParentChildDetail from './parent/child/detail'; import ParentProfileDetail from './parent/profile'; import ParentProfileEdit from './parent/profile/edit'; import ParentProfilePasswordEdit from './parent/profile/password_edit'; import ParentProfileWithdrawal from './parent/profile/withdrawal'; import ParentSide from './parent/side'; /*------------------------------------*/ import ParentForgotPassword from './parent/auth/forgot_password'; import ParentForgotPasswordReset from './parent/auth/forgot_password/reset'; import ParentLogin from './parent/auth/login'; import ParentSignUp from './parent/auth/register'; import PasswordResetComplete from './component/password_reset_complete'; import SignUpComplete from './component/register/complete'; import SignUpError from './component/register/error'; import WithdrawalComplete from './component/withdrawal_complete'; /*==================================== c-account ===================================*/ import ChildSide from './child/side'; import ChildMeetings from './child/meeting'; import ChildMeetingDetail from './child/meeting/detail'; import ChildParents from './child/parent'; import ChildParentDetail from './child/parent/detail'; import ChildProfileDetail from './child/profile'; import ChildProfileEdit from './child/profile/edit'; import ChildProfilePasswordEdit from './child/profile/password_edit'; import ChildProfileWithdrawal from './child/profile/withdrawal'; import ChildSearch from './child/search'; /*--------------------------------*/ import ChildForgotPassword from './child/auth/forgot_password'; import ChildForgotPasswordReset from './child/auth/forgot_password/reset'; import ChildLogin from './child/auth/login'; import ChildSignUpTemporary from './child/auth/register/temporary'; import ChildSignUp from './child/auth/register'; /*==================================== pages ===================================*/ import Contact from './pages/contact/index'; import ContactComplete from './pages/contact/complete'; import UnknownError from './pages/contact/unknown'; import Terms from './pages/terms'; import PrivacyPolicy from './pages/privacy-policy'; const routes = [ { path: 'admin', element: }/>, children: [ { path: 'meeting', element: }, { path: 'meeting/detail/:meeting_id', element: }, { path: 'meeting/edit/:meeting_id', element: }, { path: 'child', element: }, { path: 'child/detail/:child_id', element: }, { path: 'child/edit/:child_id', element: }, { path: 'child/edit/password/:child_id', element: }, { path: 'parent', element: }, { path: 'parent/detail/:father_id', element: }, { path: 'parent/edit/:father_id', element: }, { path: 'parent/edit/password/:father_id', element: }, { path: 'parent/register', element: }, ] }, { path: 'p-account', element: }/>, children: [ { path: 'meeting', element: }, { path: 'meeting/detail/:meeting_id', element: }, { path: 'meeting/new', element: }, { path: 'meeting/edit/:meeting_id', element: }, { path: 'favorite', element: }, { path: 'search', element: }, { path: 'child', element: }, { path: 'child/add', element: }, { path: 'child/edit/hire-date/:child_id', element: }, { path: 'child/detail/:child_id', element: }, { path: 'profile', element: }, { path: 'profile/edit/:father_id', element: }, { path: 'profile/edit/password/:father_id', element: }, { path: 'profile/withdrawal', element: }, ] }, { path: 'c-account', element: }/>, children: [ { path: 'meeting', element: }, { path: 'meeting/detail/:meeting_id', element: }, { path: 'search', element: }, { path: 'parent', element: }, { path: 'parent/detail/:father_id', element: }, { path: 'profile', element: }, { path: 'profile/edit/:child_id', element: }, { path: 'profile/password-edit/:child_id', element: }, { path: 'profile/withdrawal', element: }, ] }, { path: 'admin', element: , children: [ { path: 'login', element: }, ] }, { path: 'p-account', element: , children: [ { path: 'register/:token', element: }, { path: 'register/complete/:token', element: }, { path: 'register/error/:token', element: }, { path: 'forgot-password', element: }, { path: 'forgot-password/reset/:token', element: }, { path: 'forgot-password/complete', element: }, { path: 'login', element: }, { path: 'withdrawal/complete', element: }, ] }, { path: 'c-account', element: , children: [ { path: 'register-temporary', element: }, { path: 'register/:token', element: }, { path: 'register/complete/:token', element: }, { path: 'register/error/:token', element: }, { path: 'forgot-password', element: }, { path: 'forgot-password/reset/:token', element: }, { path: 'forgot-password/complete', element: }, { path: 'login', element: }, { path: 'withdrawal/complete', element: }, ] }, { path: '/', element: , children: [ { path: 'contact-us', element: }, { path: 'contact-us/complete', element: }, { path: 'unknown-error', element: }, { path: 'terms', element: }, { path: 'privacy-policy', element: }, ] }, ]; export default routes;