kafka-ui/kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParamsContainer.tsx
Sergey Zakirov 128c0d2e92
Topic settings editing (#55)
* Topic editing

* Remove old code

* Implement unique field name select

* Final changes to topic editing

* Cleanup eslint.json
2020-06-16 12:24:24 +03:00

19 lines
512 B
TypeScript

import { connect } from 'react-redux';
import { RootState, TopicConfigByName } from 'redux/interfaces';
import { withRouter, RouteComponentProps } from 'react-router-dom';
import CustomParams from './CustomParams';
interface OwnProps extends RouteComponentProps {
isSubmitting: boolean;
config?: TopicConfigByName;
}
const mapStateToProps = (
state: RootState,
{ isSubmitting, config }: OwnProps
) => ({
isSubmitting,
config,
});
export default withRouter(connect(mapStateToProps)(CustomParams));