- Initial commit
This commit is contained in:
21
app/containers/Auction/BidStatus.js
Normal file
21
app/containers/Auction/BidStatus.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import AuctionPriceAndBidCount from '../../components/Auction/BidStatus.js';
|
||||
|
||||
function mapStateToProps(state, ownProps) {
|
||||
const {
|
||||
bidCount,
|
||||
currentPrice,
|
||||
isBidding,
|
||||
isWinning,
|
||||
} = getAuctionItemStatus(state, ownProps.id);
|
||||
|
||||
return {
|
||||
bidCount,
|
||||
currentPrice,
|
||||
isBidding,
|
||||
isWinning,
|
||||
};
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps, null)(AuctionPriceAndBidCount);
|
||||
Reference in New Issue
Block a user