Skip to content

Commit a3a1502

Browse files
committed
rest of changes
1 parent 40edfc6 commit a3a1502

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chapter9-4/src/containers.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ export const NewColor = connect(
2020
)
2121

2222
export const Menu = connect(
23-
null,
23+
state => ({
24+
sort : state.sort
25+
}),
2426
({
2527
onSelect(sortBy) {
2628
dispatch(sortColors(sortBy))
2729
}
2830
})(sortMenu)
2931
)
30-
Menu.contextTypes = {
31-
store : PropTypes.object
32-
}
32+
3333
// export const Colors = (props, {store}) =>{
3434
// const {colors, sort} = store.getState();
3535
// const sortedColors = [...colors].sort(sortFunction(sort));

0 commit comments

Comments
 (0)