Electron working

This commit is contained in:
Federico Kereki
2018-10-05 21:47:09 -03:00
parent abe2c479c3
commit 3482298d68
44 changed files with 17566 additions and 5 deletions
+1 -1
View File
@@ -5,5 +5,5 @@ import axios from "axios";
export const getCountriesAPI = () =>
axios.get(`http://192.168.1.200:8080/countries`);
export const getRegionsAPI = country =>
export const getRegionsAPI = (country: string) =>
axios.get(`http://192.168.1.200:8080/regions/${country}`);
@@ -33,18 +33,18 @@ export type CountriesAction = {
export const countriesRequest = () =>
({
type: COUNTRIES_REQUEST
}: CountriesActions);
}: CountriesAction);
export const countriesSuccess = (listOfCountries: []) =>
({
type: COUNTRIES_SUCCESS,
listOfCountries
}: CountriesActions);
}: CountriesAction);
export const countriesFailure = () =>
({
type: COUNTRIES_FAILURE
}: CountriesActions);
}: CountriesAction);
// Regions actions