- The fix is in! Linty fresh and pretty...
This commit is contained in:
@@ -7,17 +7,16 @@ import { getAuctionItemsAsList } from '../selectors/items.js';
|
||||
|
||||
import Auction from './Auction.js';
|
||||
|
||||
const matchStateToProps = (state) => {
|
||||
const items = getAuctionItemsAsList(state);
|
||||
console.log('items:', items);
|
||||
const changeViewMode = () => true;
|
||||
|
||||
return { items };
|
||||
};
|
||||
const matchStateToProps = (state) => ({
|
||||
items: getAuctionItemsAsList(state),
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
changeViewMode: (mode) => dispatch(changeViewMode(mode)),
|
||||
fetchItems: () => dispatch(fetchItems(dispatch)),
|
||||
fetchStatus: () => dispatch(fetchAuctionStatus(dispatch)),
|
||||
fetchItems: () => dispatch(fetchItems()),
|
||||
fetchStatus: () => dispatch(fetchAuctionStatus()),
|
||||
});
|
||||
|
||||
export default connect(
|
||||
|
||||
Reference in New Issue
Block a user