mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
ProfilePage
This commit is contained in:
parent
8c44950a7d
commit
8d9695a91c
3 changed files with 14 additions and 0 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
7
src/containers/ProfilePage/ProfilePage.js
Normal file
7
src/containers/ProfilePage/ProfilePage.js
Normal 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>
|
||||
);
|
||||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue