15 lines
471 B
JavaScript
15 lines
471 B
JavaScript
export const CREATE_USER_REQUEST = 'CREATE_USER_REQUEST';
|
|
export const CREATE_USER_SUCCESS = 'CREATE_USER_SUCCESS';
|
|
export const CREATE_USER_FAILURE = 'CREATE_USER_FAILURE';
|
|
|
|
export function createUser(username, password) {
|
|
return { type: CREATE_USER_REQUEST, username, password}
|
|
}
|
|
|
|
export function createUserSuccess(user) {
|
|
return { type: CREATE_USER_SUCCESS, user }
|
|
}
|
|
|
|
export function createUserFailure(error) {
|
|
return { type: CREATE_USER_FAILURE, error }
|
|
} |