Files
talk/plugins/talk-plugin-auth/client/login/actions.js
T
2018-03-23 17:27:23 -03:00

25 lines
471 B
JavaScript

import * as actions from './constants';
export const setView = view => ({
type: actions.SET_VIEW,
view,
});
export const setEmail = email => ({
type: actions.SET_EMAIL,
email,
});
export const setPassword = password => ({
type: actions.SET_PASSWORD,
password,
});
export const enableSubmitSignUpForm = () => ({
type: actions.ENABLE_SUBMIT_SIGNUP_FORM,
});
export const disableSubmitSignUpForm = () => ({
type: actions.DISABLE_SUBMIT_SIGNUP_FORM,
});