...
|
...
|
@@ -257,6 +257,24 @@ 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) => {
|
...
|
...
|
@@ -340,3 +358,4 @@ export function cancelFavorite() { |
|
|
});
|
|
|
};
|
|
|
}
|
|
|
|
...
|
...
|
|