-
-
Save Jahans3/ff74d479772264e312c5e735fdf3f4e8 to your computer and use it in GitHub Desktop.
This file contains 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 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