Commit 232ebb9f authored by DevOps's avatar DevOps

Добавил редирект на 404-ю стр.

parent 41a89680
......@@ -86,6 +86,14 @@ const Home = () => (
)
const My404Component = () => (
<div>
<h1>Welcome to 404!</h1>
<h1>Page not found</h1>
</div>
)
const SiteForm = () => (
<div className="site">
<h2>Технические данные</h2>
......@@ -191,6 +199,9 @@ const Main = () => (
<PrivateRoute path='/sites' component={Sites}/>
<PrivateRoute path='/site-form' component={SiteForm}/>
<Route path="/login" component={Login} />
<Route path='/404' component={My404Component} />
<Redirect from='*' to='/404' />
</Switch>
</div>
</section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment