mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 02:29:10 +00:00
first bits of redux
This commit is contained in:
parent
9c7f7fda73
commit
def2b0d2a3
13 changed files with 170 additions and 16 deletions
10
ui/stores/roles.js
Normal file
10
ui/stores/roles.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { namespaceConfig } from 'fast-redux'
|
||||
import { getCurrentServerState } from './currentServer'
|
||||
|
||||
export const { action, getState: getCurrentRoles } = namespaceConfig('roles', {})
|
||||
|
||||
export const updateCurrentRoles = action('updateCurrentRoles', (state, data) => data)
|
||||
|
||||
export const renderRoles = (dispatch, getState) => {
|
||||
const server = getCurrentServerState(getState())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue