e2e test passing
This commit is contained in:
@ -1 +1,11 @@
|
||||
export const loadRestaurants = () => () => {};
|
||||
export const STORE_RESTAURANTS = 'STORE_RESTAURANTS';
|
||||
|
||||
export const loadRestaurants = () => async (dispatch, getState, api) => {
|
||||
const records = await api.loadRestaurants();
|
||||
dispatch(storeRestaurants(records));
|
||||
};
|
||||
|
||||
const storeRestaurants = records => ({
|
||||
type: STORE_RESTAURANTS,
|
||||
records
|
||||
});
|
Reference in New Issue
Block a user