ProfilePage

This commit is contained in:
Vesa Luusua 2017-01-11 00:26:24 +02:00
parent 8c44950a7d
commit 8d9695a91c
3 changed files with 14 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import { Match, Miss, Redirect } from 'react-router';
import {
LandingPage,
ListingPage,
ProfilePage,
SearchPage,
NotFoundPage,
} from './containers';
@ -21,6 +22,10 @@ const Routes = () => (
{/* Listing view */}
<Match exactly pattern="/l/:slug" component={ ListingPage } />
<Match exactly pattern="/l" component={ RedirectLandingPage } />
{/* profile / storefront view */}
<Match exactly pattern="/u/:displayName" component={ ProfilePage } />
<Match exactly pattern="/u" component={ RedirectLandingPage } />
<Miss component={ NotFoundPage } />
</div>
);

View file

@ -0,0 +1,7 @@
import React from 'react';
import { Page } from '../../components';
export default ({ params }) => (
<Page title={ `Profile page with display name: ${ params.displayName }` }>
</Page>
);

View file

@ -1,11 +1,13 @@
import LandingPage from './LandingPage/LandingPage';
import ListingPage from './ListingPage/ListingPage';
import ProfilePage from './ProfilePage/ProfilePage';
import SearchPage from './SearchPage/SearchPage';
import NotFoundPage from './NotFoundPage/NotFoundPage';
export {
LandingPage,
ListingPage,
ProfilePage,
SearchPage,
NotFoundPage,
};