
* Topic editing * Remove old code * Implement unique field name select * Final changes to topic editing * Cleanup eslint.json
19 lines
512 B
TypeScript
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));
|