feat: styling item adjustment dialog.

This commit is contained in:
a.bouhuolia
2021-01-17 17:19:01 +02:00
parent c843a28d30
commit 0b0367dd06
13 changed files with 284 additions and 142 deletions

View File

@@ -0,0 +1,13 @@
import { connect } from 'react-redux';
import { getItemById } from 'store/items/items.reducer';
export default (mapState) => {
const mapStateToProps = (state, props) => {
const mapped = {
item: getItemById(state, props.itemId),
};
return mapState ? mapState(mapped, state, props) : mapped;
};
return connect(mapStateToProps);
};