- more tweaks and fixes.... still not running
This commit is contained in:
@@ -6,10 +6,9 @@ import { getEventsAsList } from '../selectors/events.js';
|
||||
|
||||
import Events from './Events.js';
|
||||
|
||||
const matchStateToProps = (state) => {
|
||||
const events = getEventsAsList(state);
|
||||
return { events };
|
||||
};
|
||||
const matchStateToProps = (state) => ({
|
||||
events: getEventsAsList(state),
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
fetchEvents: () => dispatch(fetchEvents()),
|
||||
|
||||
Reference in New Issue
Block a user