mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 14:57:18 +10:00
Refactoring SearchPage
This commit is contained in:
parent
f1ef33cd5b
commit
18da596644
2 changed files with 4 additions and 3 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue