2021-11-09 16:53:39 +09:00
|
|
|
import React, { Component } from 'react';
|
2021-12-31 09:20:26 +09:00
|
|
|
import ReactDOM from 'react-dom';
|
2021-11-09 16:53:39 +09:00
|
|
|
import Side from './side';
|
|
|
|
|
|
|
|
import Meeting from './meeting';
|
|
|
|
import MeetingDetail from './meeting/detail';
|
|
|
|
|
|
|
|
import Parent from './parent';
|
|
|
|
import ParentDetail from './parent/detail';
|
|
|
|
|
|
|
|
import Profile from './profile';
|
|
|
|
import ProfileEdit from './profile/edit';
|
|
|
|
import ProfilePasswordEdit from './profile/password_edit';
|
|
|
|
import ProfileWithdrawal from './profile/withdrawal';
|
|
|
|
|
|
|
|
import Search from './search';
|
|
|
|
|
|
|
|
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
2021-12-31 07:01:06 +09:00
|
|
|
import PageChangeHandler from '../component/page_change_handler';
|
2021-12-31 10:50:15 +09:00
|
|
|
import ScrollToTop from '../component/scroll_top';
|
|
|
|
|
2021-11-09 16:53:39 +09:00
|
|
|
|
|
|
|
export default class ChildApp extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<main className="l-container meeting-consent">
|
|
|
|
<BrowserRouter>
|
2021-12-31 10:50:15 +09:00
|
|
|
<PageChangeHandler />
|
|
|
|
<ScrollToTop />
|
2021-11-09 16:53:39 +09:00
|
|
|
<Switch>
|
|
|
|
<Route exact path="/c-account/meeting" component = {Meeting} />
|
|
|
|
<Route exact path="/c-account/meeting/detail/:meeting_id" component = {MeetingDetail} />
|
|
|
|
<Route exact path="/c-account/search" component = {Search} />
|
|
|
|
<Route exact path="/c-account/parent" component = {Parent} />
|
|
|
|
<Route exact path="/c-account/parent/detail/:father_id" component = {ParentDetail} />
|
|
|
|
|
|
|
|
<Route exact path="/c-account/profile" component = {Profile} />
|
|
|
|
<Route exact path="/c-account/profile/edit/:child_id" component = {ProfileEdit} />
|
|
|
|
<Route exact path="/c-account/profile/password-edit/:child_id" component = {ProfilePasswordEdit} />
|
|
|
|
<Route exact path="/c-account/profile/withdrawal" component = {ProfileWithdrawal} />
|
|
|
|
</Switch>
|
|
|
|
<Side />
|
|
|
|
</BrowserRouter>
|
|
|
|
</main>
|
|
|
|
);
|
|
|
|
}
|
2021-12-31 07:01:06 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(document.getElementById('c-app')){
|
|
|
|
ReactDOM.render(
|
|
|
|
<ChildApp />,
|
|
|
|
document.getElementById('c-app')
|
|
|
|
)
|
2021-11-09 16:53:39 +09:00
|
|
|
}
|