Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. export const SEARCH_VIEWS = {
  2. [SEARCH_TYPE.KEYCODE]: {
  3. columns: () => ([
  4. { key: 'keycode', name: 'Keycode', width: 100 },
  5. ].map(makeColumnResizable)),
  6.  
  7. filters: () => ([
  8. FILTERS.STORE,
  9. FILTERS.DISTRIBUTION_CENTRE,
  10. ]),
  11. editForm: (onSubmit) => (<EditKeycodeParametersForm onSubmit={onSubmit} />),
  12. }
  13.  
  14. SEARCH_VIEWS.propTypes = {
  15. allOpenStoresSearchTerms: PropTypes.objectOf(PropTypes.object).isRequired,
  16. };
  17.  
  18. const mapStateToProps = (state) => ({
  19. allOpenStoresSearchTerms: state.parameters.allOpenStoresSearchTerms,
  20. });
  21.  
  22. export default connect(mapStateToProps)(SEARCH_VIEWS);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement