Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const SEARCH_VIEWS = {
- [SEARCH_TYPE.KEYCODE]: {
- columns: () => ([
- { key: 'keycode', name: 'Keycode', width: 100 },
- ].map(makeColumnResizable)),
- filters: () => ([
- FILTERS.STORE,
- FILTERS.DISTRIBUTION_CENTRE,
- ]),
- editForm: (onSubmit) => (<EditKeycodeParametersForm onSubmit={onSubmit} />),
- }
- SEARCH_VIEWS.propTypes = {
- allOpenStoresSearchTerms: PropTypes.objectOf(PropTypes.object).isRequired,
- };
- const mapStateToProps = (state) => ({
- allOpenStoresSearchTerms: state.parameters.allOpenStoresSearchTerms,
- });
- export default connect(mapStateToProps)(SEARCH_VIEWS);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement