diff --git a/kafka-ui-react-app/src/components/Connect/Connect.tsx b/kafka-ui-react-app/src/components/Connect/Connect.tsx index f1bb7ef406..c4c94227e6 100644 --- a/kafka-ui-react-app/src/components/Connect/Connect.tsx +++ b/kafka-ui-react-app/src/components/Connect/Connect.tsx @@ -7,57 +7,63 @@ import { clusterConnectConnectorsRelativePath, clusterConnectorNewRelativePath, getNonExactPath, + clusterConnectorsPath, } from 'lib/paths'; import { BreadcrumbRoute } from 'components/common/Breadcrumb/Breadcrumb.route'; +import useAppParams from 'lib/hooks/useAppParams'; import ListContainer from './List/ListContainer'; import NewContainer from './New/NewContainer'; import DetailsContainer from './Details/DetailsContainer'; import EditContainer from './Edit/EditContainer'; -const Connect: React.FC = () => ( - - - - - } - /> - - - - } - /> - - - - } - /> - - - - } - /> - } - /> - } - /> - -); +const Connect: React.FC = () => { + const { clusterName } = useAppParams(); + + return ( + + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + } + /> + } + /> + + ); +}; export default Connect;