Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { makeThunkAsyncActionCreator } from 'redux-toolbelt-thunk';
import Api from '../../api';
export const getGeneral = makeThunkAsyncActionCreator(
'FETCH_USER',
Api.GeneralApi.getGeneral
);
export const getChartData = makeThunkAsyncActionCreator(
'FETCH_USER',
Api.ChartApi.getChartData
);
import { makeThunkAsyncActionCreator } from 'redux-toolbelt-thunk';
import Api from '../../api';
export const getGeneral = makeThunkAsyncActionCreator(
'FETCH_USER',
Api.GeneralApi.getGeneral
);
export const getChartData = makeThunkAsyncActionCreator(
'FETCH_USER',
Api.ChartApi.getChartData
);