mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 02:19:08 +00:00
add why no roles and landing pages
This commit is contained in:
parent
309aee427e
commit
3d07efb5fa
24 changed files with 329 additions and 15 deletions
|
@ -2,14 +2,15 @@ import { Map, OrderedMap, fromJS } from 'immutable'
|
|||
|
||||
const initialState = Map({
|
||||
viewMap: OrderedMap({}),
|
||||
originalSnapshot: OrderedMap({})
|
||||
originalSnapshot: OrderedMap({}),
|
||||
hasAvailableRoles: true
|
||||
})
|
||||
|
||||
const reducer = (state = initialState, { type, data }) => {
|
||||
switch (type) {
|
||||
case Symbol.for('re: setup'):
|
||||
const { viewMap, originalSnapshot, ...rest } = data
|
||||
return Map({ viewMap: OrderedMap(viewMap), originalSnapshot: OrderedMap(originalSnapshot), ...rest })
|
||||
return state.merge({ viewMap: OrderedMap(viewMap), originalSnapshot: OrderedMap(originalSnapshot), ...rest })
|
||||
|
||||
case Symbol.for('re: set category'):
|
||||
return state.setIn(['viewMap', data.id], Map(data))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue