WIP feature/editItem

This commit is contained in:
elforjani3
2020-05-23 13:53:49 +02:00
parent fa558a047c
commit 7d1952344d
8 changed files with 203 additions and 49 deletions

View File

@@ -0,0 +1,9 @@
import { connect } from 'react-redux';
import t from 'store/types';
import { getItemById } from 'store/items/items.reducer';
const mapStateToProps = (state, props) => ({
itemDetail: getItemById(state, props.itemId),
});
export default connect(mapStateToProps);