web: Client: Added empty Confirm page

This commit is contained in:
Alexey Safronov 2019-09-03 14:41:08 +03:00
parent e07895c1a4
commit 193ee7def8
2 changed files with 16 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import { Error404 } from "./components/pages/Error";
const Home = lazy(() => import("./components/pages/Home"));
const About = lazy(() => import("./components/pages/About"));
const Confirm = lazy(() => import("./components/pages/Confirm"));
const App = () => {
return (
@ -18,6 +19,7 @@ const App = () => {
>
<Switch>
<Route exact path="/login" component={Login} />
<Route exact path="/confirm" component={Confirm} />
<PrivateRoute exact path="/" component={Home} />
<PrivateRoute exact path="/about" component={About} />
<PrivateRoute component={Error404} />

View File

@ -0,0 +1,14 @@
import React from 'react';
import { withRouter } from "react-router";
const Confirm = (props) => {
const { match } = props;
const matchStr = JSON.stringify(match);
return (
<span>{matchStr}</span>
);
}
export default withRouter(Confirm);