1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

set app status

This commit is contained in:
Rokt33r
2015-10-13 02:49:59 +09:00
parent cd94c625a7
commit 5356e68b51
4 changed files with 50 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
export const PARAMS_CHANGE = 'PARAMS_CHANGE'
export const USER_UPDATE = 'USER_UPDATE'
export const SWITCH_USER = 'SWITCH_USER'
export const SWITCH_FOLDER = 'SWITCH_FOLDER'
export function updateUser (user) {
return {
@@ -8,9 +9,16 @@ export function updateUser (user) {
}
}
export function switchParams (params) {
export function switchUser (userId) {
return {
type: PARAMS_CHANGE,
data: params
type: SWITCH_USER,
data: userId
}
}
export function switchFolder (folderId) {
return {
type: SWITCH_FOLDER,
data: folderId
}
}