Refactoring SearchPage

This commit is contained in:
Vesa Luusua 2017-01-11 00:15:05 +02:00
parent f1ef33cd5b
commit 18da596644
2 changed files with 4 additions and 3 deletions

View file

@ -8,8 +8,10 @@ const RedirectLandingPage = () => <Redirect to="/" />;
const Routes = () => (
<div>
<Match exactly pattern="/search" component={ SearchPage } />
<Match exactly pattern="/" component={ LandingPage } />
{/* Search view */}
<Match exactly pattern="/s" component={ SearchPage } />
<Miss component={ NotFoundPage } />
</div>
);

View file

@ -4,7 +4,6 @@ import { Page } from '../../components';
export default () => (
<Page title="Search page">
<Link to="/">index page</Link><br />
<Link to="/home">home page</Link>
<Link to="/l/Nice+studio-in-Helsinki-345">Nice studio in Helsinki</Link>
</Page>
);