Archived
added 404 page
This commit is contained in:
1 parent
ec8acf1568
commit
0d2050d354
3 files changed
+8
-3
No files matched your search
+5
-3
@@ -2,14 +2,16 @@ import { BrowserRouter as Router, Switch, Route /*Link*/ } from "react-router-do
|
|||||||
import { Home } from "./pages/Home";
|
import { Home } from "./pages/Home";
|
||||||
import { About } from "./pages/About";
|
import { About } from "./pages/About";
|
||||||
import { Users } from "./pages/Users";
|
import { Users } from "./pages/Users";
|
||||||
|
import { NotFound } from "./pages/NotFound";
|
||||||
|
|
||||||
export const App = () => {
|
export const App = () => {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/about" component={About} />
|
<Route exact path="/about" component={About} />
|
||||||
<Route path="/users" component={Users} />
|
<Route exact path="/users" component={Users} />
|
||||||
<Route path="/" component={Home} />
|
<Route exact path="/" component={Home} />
|
||||||
|
<Route component={NotFound} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export const NotFound = () => {
|
||||||
|
return <h1>Podana strona nie została odnaleziona</h1>;
|
||||||
|
};
|
||||||
Whitespace-only changes.
Reference in new issue
Block a user