fleet/frontend/redux/utilities/entityGetter.js
Mike Arpaia c07702330d Cleaning JavaScript imports and if statements (#327)
* Moving entityGetter to utility folder

* Import whitespace and if statement braces

* newlines between multi-line if's
2016-10-19 16:22:18 -04:00

8 lines
190 B
JavaScript

import stateEntityGetter from 'react-entity-getter';
const pathToEntities = (entityName) => {
return `entities[${entityName}].data`;
};
export default stateEntityGetter(pathToEntities);