Adding a notification stack for error messages
This commit is contained in:
parent
05b0c985b4
commit
d6a64f45fd
17 changed files with 115 additions and 45 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Reference in a new issue