summaryrefslogtreecommitdiff
path: root/src/router/index.js
blob: 9b141ee70a1d673688f96ac9a299b1f7e3aad164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react';
import { MemoryRouter, Route, Switch } from 'react-router-dom';

import FeedContainer from '../containers/feed';
import OptionsContainer from '../containers/options';

const AppRoutes = () => {
  return (
    // @todo use browser router and generate prerendered options.html page for chrome extension
    <MemoryRouter>
      <Switch>
        <Route exact path='/' component={ FeedContainer }/>
        <Route exact path='/options' component={ OptionsContainer }/>
        <Route component={ FeedContainer }/>
      </Switch>
    </MemoryRouter>
  );
};

export default AppRoutes;