このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/backend/resources/js/child/auth/index.js

57 行
2.3 KiB
JavaScript
Raw 通常表示 履歴

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';
import ForgotPassword from './forgot_password';
import ForgotPasswordComplete from './forgot_password/complete';
import ForgotPasswordReset from './forgot_password/reset';
import Login from './login';
import SignUpTemporary from './register/temporary';
import SignUp from './register';
import SignUpComplete from './register/complete';
import SignUpError from './register/error';
export default class ChildAuth extends Component {
render() {
return (
2021-10-18 18:15:53 +09:00
<main class="l-single-main">
<div class="l-centeringbox">
<div class="l-centeringbox-wrap">
<div class="l-single-container">
<div class="l-single-inner">
<BrowserRouter>
<Switch>
<Route exact path='/register-temporary/c-account' component={SignUpTemporary} />
<Route exact path='/register/c-account' component={SignUp} />
<Route exact path='/register/c-account/complete' component={SignUpComplete} />
<Route exact path='/register/c-account/error/' component={SignUpError} />
<Route exact path="/forgot-password/c-account" component = {ForgotPassword} />
<Route exact path="/forgot-password/c-account/reset" component = {ForgotPasswordReset} />
<Route exact path="/forgot-password/c-account/complete" component = {ForgotPasswordComplete} />
<Route exact path="/login/c-account" component = {Login} />
</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')
)
}