Skip to content

Instantly share code, notes, and snippets.

@Jahans3
Created January 16, 2018 02:33
Show Gist options
  • Save Jahans3/ff74d479772264e312c5e735fdf3f4e8 to your computer and use it in GitHub Desktop.
Save Jahans3/ff74d479772264e312c5e735fdf3f4e8 to your computer and use it in GitHub Desktop.
export type Action = {
type: string,
payload?: Object
}
import { Action } from '../types'
const signInRequest: Function = (): Action => ({
type: actionTypes.SIGN_IN_REQUEST
})
const signInSuccess: Function = ({ user }: { user: Object }): Action => ({
type: actionTypes.SIGN_IN_SUCCESS,
payload: { user }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment