override missing modules using hardcoded values
This commit is contained in:
@@ -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);
|
||||
});
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user