first bits of redux

This commit is contained in:
41666 2019-03-20 09:25:28 -05:00
parent 9c7f7fda73
commit def2b0d2a3
13 changed files with 170 additions and 16 deletions

10
ui/stores/roles.js Normal file
View 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())
}