Rocket.Chat.ReactNative/app/actions/index.js

48 lines
672 B
JavaScript
Raw Normal View History

2017-08-13 01:35:09 +00:00
import * as types from '../constants/types';
import { APP } from './actionsTypes';
2017-08-13 01:35:09 +00:00
export function appStart(root) {
return {
type: APP.START,
root
};
}
export function appReady() {
return {
type: APP.READY
};
}
export function appInit() {
return {
type: APP.INIT
};
}
2017-08-13 01:35:09 +00:00
export function setCurrentServer(server) {
return {
type: types.SET_CURRENT_SERVER,
payload: server
};
}
export function addSettings(settings) {
return {
type: types.ADD_SETTINGS,
payload: settings
};
}
export function setAllSettings(settings) {
return {
type: types.SET_ALL_SETTINGS,
payload: settings
};
2017-08-13 01:35:09 +00:00
}
2017-11-24 20:44:52 +00:00
2017-08-16 23:29:12 +00:00
export function login() {
return {
type: 'LOGIN'
};
}