Adding a notification stack for error messages

This commit is contained in:
Eugen Rochko
2016-09-12 19:20:55 +02:00
parent 05b0c985b4
commit d6a64f45fd
17 changed files with 115 additions and 45 deletions

View File

@@ -11,7 +11,7 @@ export function changeFollow(text) {
type: FOLLOW_CHANGE,
text: text
};
}
};
export function submitFollow() {
return function (dispatch, getState) {
@@ -25,24 +25,24 @@ export function submitFollow() {
dispatch(submitFollowFail(error));
});
};
}
};
export function submitFollowRequest() {
return {
type: FOLLOW_SUBMIT_REQUEST
};
}
};
export function submitFollowSuccess(account) {
return {
type: FOLLOW_SUBMIT_SUCCESS,
account: account
};
}
};
export function submitFollowFail(error) {
return {
type: FOLLOW_SUBMIT_FAIL,
error: error
};
}
};