Skip to content

Commit a144852

Browse files
committed
added not-found container and route
1 parent f29c1c7 commit a144852

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function App() {
2121
<Route path="/" component={HomeContainer} />
2222
<Route path="/currency-converter" component={CurrencyConverterContainer} />
2323
<Route path="/css-modules" component={CssModulesContainer} />
24+
<Route path="*" component={NotFoundContainer} />
2425
</Route>
2526
</Router>
2627
</Provider>

src/containers/not-found/index.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import * as React from 'react';
2+
import { Link } from 'react-router';
3+
import { PageSection } from '../../components/page-section';
4+
import { PageHero } from '../../components/page-hero';
5+
6+
export default function () {
7+
return (
8+
<article>
9+
<PageHero title="404 Not Found" subtitle="Page not found" />
10+
<PageSection className="o-container o-container--small u-centered">
11+
<Link to="/">Back to Home</Link>
12+
</PageSection>
13+
<br />
14+
</article>
15+
);
16+
};

0 commit comments

Comments
 (0)