diff --git a/src/Routes.js b/src/Routes.js index 67ae1e1f..e6dd22ef 100644 --- a/src/Routes.js +++ b/src/Routes.js @@ -3,6 +3,7 @@ import { Match, Miss, Redirect } from 'react-router'; import { AuthenticationPage, CheckoutPage, + InboxPage, LandingPage, ListingPage, ProfilePage, @@ -87,6 +88,19 @@ class Routes extends React.Component { (props) => } /> + {/* Inbox and filtered views */} + } /> + } /> + } /> diff --git a/src/containers/InboxPage/InboxPage.js b/src/containers/InboxPage/InboxPage.js new file mode 100644 index 00000000..bcbcc04c --- /dev/null +++ b/src/containers/InboxPage/InboxPage.js @@ -0,0 +1,25 @@ +import React from 'react'; +import { Link } from 'react-router'; +import { Page } from '../../components'; + +const toPath = (filter, id) => { + switch(filter) { + case 'orders': + return `/order/${id}`; + case 'sales': + return `/sale/${id}`; + default: + return `/conversation/${id}`; + } +} + +export default (props) => { + const { filter } = props; + return ( + +
    +
  • Single thread
  • +
+
+ ); +}; diff --git a/src/containers/index.js b/src/containers/index.js index a7e4040e..5ad48c86 100644 --- a/src/containers/index.js +++ b/src/containers/index.js @@ -1,6 +1,7 @@ import AuthenticationPage from './AuthenticationPage/AuthenticationPage'; import CheckoutPage from './CheckoutPage/CheckoutPage'; import EditProfilePage from './EditProfilePage/EditProfilePage'; +import InboxPage from './InboxPage/InboxPage'; import LandingPage from './LandingPage/LandingPage'; import ListingPage from './ListingPage/ListingPage'; import ProfilePage from './ProfilePage/ProfilePage'; @@ -11,6 +12,7 @@ export { AuthenticationPage, CheckoutPage, EditProfilePage, + InboxPage, LandingPage, ListingPage, ProfilePage,