WIP / Fix_ExchangeRate / localize

This commit is contained in:
elforjani3
2020-05-11 04:12:23 +02:00
parent cceb4786c2
commit 98edc66dd2
20 changed files with 636 additions and 413 deletions

View File

@@ -7,6 +7,10 @@ export const fetchExchangeRates = () => {
dispatch({
type: t.SET_DASHBOARD_REQUEST_LOADING,
});
dispatch({
type: t.EXCHANGE_RATE_TABLE_LOADING,
loading: true,
});
ApiService.get('exchange_rates')
.then((response) => {
dispatch({
@@ -16,6 +20,10 @@ export const fetchExchangeRates = () => {
dispatch({
type: t.SET_DASHBOARD_REQUEST_COMPLETED,
});
dispatch({
type: t.EXCHANGE_RATE_TABLE_LOADING,
loading: false,
});
resolve(response);
})
.catch((error) => {