Add state for navigation
Currently selected navigation item is available under the navigation variable so that the whole application has access to it.
This commit is contained in:
parent
c9b324c68b
commit
d14eed9965
10 changed files with 154 additions and 45 deletions
5
app/actions/navigation.jsx
Normal file
5
app/actions/navigation.jsx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import * as types from '../constants/navigation'
|
||||
|
||||
export function updateSelection(selection) {
|
||||
return { type: types.UPDATE_SELECTION, selection }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue