#31 404 when dap.ps/all and dap.ps/categories requested (#33)

* 31 404 when dap.ps/all and dap.ps/categories requested

* Set initalState for selectedCategory to EXCHANGES
This commit is contained in:
Onuwa Nnachi Isaac 2019-04-19 21:17:12 +01:00 committed by Andy Tudhope
parent 8c016eb926
commit bd524aff54
2 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,9 @@ import { routerMiddleware } from 'connected-react-router'
import { createBrowserHistory } from 'history'
import reducer from './reducers'
export const history = createBrowserHistory()
export const history = createBrowserHistory({
basename: '/discover-dapps/',
})
const composeWithDevTools =
/* eslint-disable-next-line no-underscore-dangle */

View File

@ -1,4 +1,5 @@
import reducerUtil from '../../common/utils/reducer'
import { EXCHANGES } from '../../common/data/categories'
const UPDATE_CATEGORY = 'UPDATE_CATEGORY'
@ -7,7 +8,7 @@ export const selectCategory = category => ({
payload: category,
})
const initialState = null
const initialState = EXCHANGES
const categoryChange = (_, category) => category