Skip to content

Commit 1b9740a

Browse files
vaukalakgaykov
authored andcommitted
Update CalendarViewContainer.js (#13)
Here and in other components I'd suggest using this shorter syntax, which is equivalent of original.
1 parent 7b900cd commit 1b9740a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/calendar/CalendarViewContainer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default compose(
1010
state => ({
1111
items: state.calendar.items,
1212
}),
13-
dispatch => ({
14-
loadItems: items => dispatch(loadItems(items)),
15-
}),
13+
{
14+
loadItems,
15+
},
1616
),
1717
)(CalendarScreen);

0 commit comments

Comments
 (0)