This commit is contained in:
2019-08-05 21:23:17 -04:00
parent a9f4324f29
commit 1e464de7e8
42 changed files with 837 additions and 165 deletions

View File

@@ -0,0 +1,29 @@
import { connect } from 'react-redux';
import { placeBid } from '../../actions/auction.js';
import AuctionListItem from '../../components/Auction/AuctionListItem.js';
const mapStateToProps = (state, ownProps) => {
const { item } = ownProps;
return {
description: item.get('description'),
donor: item.get('donor'),
end: item.get('end'),
id: item.get('id'),
images: item.get('images').toArray(),
start: item.get('start'),
startingPrice: item.get('startingPrice'),
subtitle: item.get('subtitle'),
title: item.get('title'),
type: item.get('type'),
};
};
const mapDispatchToProps = (dispatch) => ({
placeBid: (data) => dispatch(placeBid(data)),
});
export default connect(mapStateToProps, null)(AuctionListItem);