diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-29 21:45:46 +0500 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-29 21:45:46 +0500 |
| commit | b8da40dc392dc654d29402202eac0753f53c4845 (patch) | |
| tree | 1298faa7aba0edf16b3b941e4415e33336ed1982 /src/router | |
| parent | Handle same date jumps (diff) | |
| download | githunt-b8da40dc392dc654d29402202eac0753f53c4845.tar.gz | |
Update icons
Diffstat (limited to 'src/router')
| -rw-r--r-- | src/router/index.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/router/index.js b/src/router/index.js index ff6e85f..9b141ee 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,18 +1,19 @@ import React from 'react'; -import { BrowserRouter, Route, Switch } from 'react-router-dom'; +import { MemoryRouter, Route, Switch } from 'react-router-dom'; import FeedContainer from '../containers/feed'; import OptionsContainer from '../containers/options'; const AppRoutes = () => { return ( - <BrowserRouter> + // @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> - </BrowserRouter> + </MemoryRouter> ); }; |
