2021-10-08 08:12:25 +09:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
2021-11-04 15:38:36 +09:00
|
|
|
import ChildForgotPassword from './forgot_password';
|
|
|
|
import ChildForgotPasswordComplete from './forgot_password/complete';
|
|
|
|
import ChildForgotPasswordReset from './forgot_password/reset';
|
|
|
|
import ChildLogin from './login';
|
|
|
|
import ChildSignUpTemporary from './register/temporary';
|
|
|
|
import ChildSignUp from './register';
|
|
|
|
import ChildSignUpComplete from './register/complete';
|
|
|
|
import ChildSignUpError from './register/error';
|
2021-11-08 00:25:42 +09:00
|
|
|
import ChildWithdrawal from './withdrawal_complete';
|
2021-10-08 08:12:25 +09:00
|
|
|
export default class ChildAuth extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2021-10-26 09:32:52 +09:00
|
|
|
<main className="l-single-main">
|
|
|
|
<div className="l-centeringbox">
|
|
|
|
<div className="l-centeringbox-wrap">
|
|
|
|
<div className="l-single-container">
|
|
|
|
<div className="l-single-inner">
|
2021-10-18 18:15:53 +09:00
|
|
|
|
|
|
|
<BrowserRouter>
|
|
|
|
<Switch>
|
2021-11-04 15:38:36 +09:00
|
|
|
<Route exact path='/c-account/register-temporary' component={ChildSignUpTemporary} />
|
2021-11-09 00:28:26 +09:00
|
|
|
<Route exact path='/c-account/register/:token' component={ChildSignUp} />
|
2021-11-10 02:50:23 +09:00
|
|
|
<Route exact path='/c-account/register/complete/:token' component={ChildSignUpComplete} />
|
|
|
|
<Route exact path='/c-account/register/error/:token' component={ChildSignUpError} />
|
2021-11-04 15:38:36 +09:00
|
|
|
|
|
|
|
<Route exact path="/c-account/forgot-password" component = {ChildForgotPassword} />
|
|
|
|
<Route exact path="/c-account/forgot-password/reset/:token" component = {ChildForgotPasswordReset} />
|
|
|
|
<Route exact path="/c-account/forgot-password/complete" component = {ChildForgotPasswordComplete} />
|
2021-10-18 18:15:53 +09:00
|
|
|
|
2021-11-04 15:38:36 +09:00
|
|
|
<Route exact path="/c-account/login" component = {ChildLogin} />
|
2021-11-08 00:25:42 +09:00
|
|
|
<Route exact path="/c-account/withdrawal/complete" component = {ChildWithdrawal} />
|
2021-10-18 18:15:53 +09:00
|
|
|
</Switch>
|
|
|
|
</BrowserRouter>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
2021-10-08 08:12:25 +09:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
if(document.getElementById('c-auth')){
|
|
|
|
ReactDOM.render(
|
|
|
|
<ChildAuth />,
|
|
|
|
document.getElementById('c-auth')
|
|
|
|
)
|
|
|
|
}
|