- more!
This commit is contained in:
1 parent
434a1ded24
commit
a9f4324f29
21 files changed
+345
-100
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,16 @@
|
||||
export const matchStateToProps = (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'),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { mapStateToProps } from './Item.js';
|
||||
import ItemRow from '../../components/Item/List.js';
|
||||
|
||||
export default connect(mapStateToProps, null)(ItemRow);
|
||||
Reference in new issue
Block a user