override missing modules using hardcoded values

This commit is contained in:
GotPPay
2018-07-29 02:28:44 +02:00
parent 09a2be6be8
commit d2ff1e497a
4 changed files with 85 additions and 6 deletions

View File

@@ -1,7 +1,4 @@
import {API_SERVER} from '../../config';
import HtmlClient from '../../helpers/HtmlClient';
import {REQUEST_NEXT_ACTIONS, RECIEVE_NEXT_ACTIONS} from '../../constants/dashboardConstants';
const client = new HtmlClient();
export const requestNextActions = () => ({
type: REQUEST_NEXT_ACTIONS,
@@ -17,6 +14,9 @@ export const recieveNextActions = (json) => ({
export const fetchNextActions = () => {
return dispatch => {
dispatch(requestNextActions());
//TODO : fetch next actions from gravity flow api
dispatch(recieveNextActions({}));
/*
return client.fetch({
url: `${API_SERVER}/dashboards/api/getNextActionsInfo`
})
@@ -24,5 +24,6 @@ export const fetchNextActions = () => {
.catch(error => {
client.onError(error, dispatch);
});
*/
}
}