web: Client: Added empty Confirm page
This commit is contained in:
parent
e07895c1a4
commit
193ee7def8
@ -8,6 +8,7 @@ import { Error404 } from "./components/pages/Error";
|
|||||||
|
|
||||||
const Home = lazy(() => import("./components/pages/Home"));
|
const Home = lazy(() => import("./components/pages/Home"));
|
||||||
const About = lazy(() => import("./components/pages/About"));
|
const About = lazy(() => import("./components/pages/About"));
|
||||||
|
const Confirm = lazy(() => import("./components/pages/Confirm"));
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
return (
|
return (
|
||||||
@ -18,6 +19,7 @@ const App = () => {
|
|||||||
>
|
>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route exact path="/login" component={Login} />
|
<Route exact path="/login" component={Login} />
|
||||||
|
<Route exact path="/confirm" component={Confirm} />
|
||||||
<PrivateRoute exact path="/" component={Home} />
|
<PrivateRoute exact path="/" component={Home} />
|
||||||
<PrivateRoute exact path="/about" component={About} />
|
<PrivateRoute exact path="/about" component={About} />
|
||||||
<PrivateRoute component={Error404} />
|
<PrivateRoute component={Error404} />
|
||||||
|
14
web/ASC.Web.Client/src/components/pages/Confirm/index.js
Normal file
14
web/ASC.Web.Client/src/components/pages/Confirm/index.js
Normal 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);
|
Loading…
Reference in New Issue
Block a user