Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| import { createAction } from 'redux-actions'; | |
| import types from './types'; | |
| // updateTitle(title: String) => Action | |
| export const updateTitle = createAction(types.updateTitle); | |
| // makeToast({ type?: String, message: String, title: String }) => Action | |
| export const makeToast = createAction( | |
| types.makeToast, | |
| toast => toast.type ? toast : (toast.type = 'info', toast) | |
| ); | |
| // fetchUser() => Action | |
| // used in combination with fetch-user-saga | |
| export const fetchUser = createAction(types.fetchUser); | |
| // setUser(userInfo: Object) => Action | |
| export const setUser = createAction(types.setUser); | |
| // updatePoints(points: Number) => Action | |
| export const updatePoints = createAction(types.updatePoints); |