Common reducer for toasts

This commit is contained in:
Ildar Kamalov
2019-02-07 15:40:26 +03:00
parent c466f8cc73
commit 826529e73e
4 changed files with 37 additions and 61 deletions

View File

@@ -1,11 +1,9 @@
import { createAction } from 'redux-actions';
import Api from '../api/Api';
import { addErrorToast, addSuccessToast } from './index';
const apiClient = new Api();
export const addErrorToast = createAction('ADD_ERROR_TOAST');
export const addSuccessToast = createAction('ADD_SUCCESS_TOAST');
export const removeToast = createAction('REMOVE_TOAST');
export const nextStep = createAction('NEXT_STEP');
export const prevStep = createAction('PREV_STEP');