Created
February 20, 2019 09:32
-
-
Save charisschomba/d3c264e0af6afa966c84f26965d00a6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
REGISTER_USER, | |
REGISTER_SUCCESS, | |
REGISTER_ERROR, | |
REGISTERING_USER, | |
} from "../../../constants/users"; | |
export const registrationStarted = () => ({ | |
type: REGISTER_USER | |
}); | |
export const startRegistration = payload => ({ | |
type: REGISTERING_USER, | |
payload | |
}); | |
export const registerUserSuccess = payload => ({ | |
type: REGISTER_SUCCESS, | |
payload | |
}); | |
export const registerUserFailure = payload => ({ | |
type: REGISTER_ERROR, | |
payload | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const REGISTER_USER = "REGISTER_USER"; | |
export const REGISTER_ERROR = "REGISTER_ERROR"; | |
export const REGISTER_SUCCESS = "REGISTER_SUCCESS"; | |
export const REGISTERING_USER = "REGISTERING_USER"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment