...
|
...
|
@@ -257,24 +257,6 @@ export function articleByBrand(){ |
|
|
});
|
|
|
};
|
|
|
}
|
|
|
export function addFavoriteRequest(){
|
|
|
return {
|
|
|
type: ADD_FAVORITE_REQUEST,
|
|
|
};
|
|
|
}
|
|
|
|
|
|
export function addFavoriteSuccess(json){
|
|
|
return {
|
|
|
type: ADD_FAVORITE_SUCCESS,
|
|
|
payload:json
|
|
|
};
|
|
|
}
|
|
|
|
|
|
export function addFavoriteFailure(){
|
|
|
return {
|
|
|
type: ADD_FAVORITE_SUCCESS,
|
|
|
};
|
|
|
}
|
|
|
|
|
|
export function addFavorite() {
|
|
|
return (dispatch, getState) => {
|
...
|
...
|
@@ -358,4 +340,3 @@ export function cancelFavorite() { |
|
|
});
|
|
|
};
|
|
|
} |
|
|
|
...
|
...
|
|