Commit 8354d08a authored by Florent Chehab's avatar Florent Chehab
Browse files

Loading currencies added

parent 9936114a
...@@ -22,12 +22,12 @@ import MyComponent from './MyComponent' ...@@ -22,12 +22,12 @@ import MyComponent from './MyComponent'
// import route Components here // import route Components here
import { import {
BrowserRouter as Router,
Route, Route,
} from 'react-router-dom'; } from 'react-router-dom';
import { import {
countriesFetchData, countriesFetchData,
currenciesFetchData,
} from '../generated/actions'; } from '../generated/actions';
...@@ -174,14 +174,16 @@ App.propTypes = { ...@@ -174,14 +174,16 @@ App.propTypes = {
const mapStateToProps = (state) => { const mapStateToProps = (state) => {
return { return {
countries: state.countries countries: state.countries,
currencies: state.currencies
} }
}; };
const mapDispatchToProps = (dispatch) => { const mapDispatchToProps = (dispatch) => {
return { return {
fetchData: { fetchData: {
countries: () => dispatch(countriesFetchData()) countries: () => dispatch(countriesFetchData()),
currencies: () => dispatch(currenciesFetchData()),
} }
}; };
}; };
......
...@@ -5,7 +5,8 @@ import { ...@@ -5,7 +5,8 @@ import {
mainCampusesReducers, mainCampusesReducers,
countriesReducers, countriesReducers,
countriesElReducers, countriesElReducers,
universitiesElReducers universitiesElReducers,
currenciesReducers,
} from '../generated/combinedReducers'; } from '../generated/combinedReducers';
import { import {
...@@ -21,6 +22,7 @@ const rootReducer = combineReducers({ ...@@ -21,6 +22,7 @@ const rootReducer = combineReducers({
countriesEl: countriesElReducers, countriesEl: countriesElReducers,
universities: universitiesReducers, universities: universitiesReducers,
universitiesEl: universitiesElReducers, universitiesEl: universitiesElReducers,
currencies: currenciesReducers,
mainCampuses: mainCampusesReducers, mainCampuses: mainCampusesReducers,
app: appReducers app: appReducers
}) })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment