mirror of
https://github.com/status-im/discover-dapps.git
synced 2025-02-20 14:18:28 +00:00
* 31 404 when dap.ps/all and dap.ps/categories requested * Set initalState for selectedCategory to EXCHANGES
This commit is contained in:
parent
8c016eb926
commit
bd524aff54
@ -3,7 +3,9 @@ import { routerMiddleware } from 'connected-react-router'
|
|||||||
import { createBrowserHistory } from 'history'
|
import { createBrowserHistory } from 'history'
|
||||||
import reducer from './reducers'
|
import reducer from './reducers'
|
||||||
|
|
||||||
export const history = createBrowserHistory()
|
export const history = createBrowserHistory({
|
||||||
|
basename: '/discover-dapps/',
|
||||||
|
})
|
||||||
|
|
||||||
const composeWithDevTools =
|
const composeWithDevTools =
|
||||||
/* eslint-disable-next-line no-underscore-dangle */
|
/* eslint-disable-next-line no-underscore-dangle */
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import reducerUtil from '../../common/utils/reducer'
|
import reducerUtil from '../../common/utils/reducer'
|
||||||
|
import { EXCHANGES } from '../../common/data/categories'
|
||||||
|
|
||||||
const UPDATE_CATEGORY = 'UPDATE_CATEGORY'
|
const UPDATE_CATEGORY = 'UPDATE_CATEGORY'
|
||||||
|
|
||||||
@ -7,7 +8,7 @@ export const selectCategory = category => ({
|
|||||||
payload: category,
|
payload: category,
|
||||||
})
|
})
|
||||||
|
|
||||||
const initialState = null
|
const initialState = EXCHANGES
|
||||||
|
|
||||||
const categoryChange = (_, category) => category
|
const categoryChange = (_, category) => category
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user