From 42085b5f07b8dcb464317c0abacb182d3c73371c Mon Sep 17 00:00:00 2001 From: Azat Gataullin Date: Tue, 5 May 2020 15:03:44 +0300 Subject: [PATCH] fix-routes-for-details (#45) --- .../src/components/Topics/Details/Details.tsx | 38 +++++++++++++------ 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/kafka-ui-react-app/src/components/Topics/Details/Details.tsx b/kafka-ui-react-app/src/components/Topics/Details/Details.tsx index 74185608cc..b852290b40 100644 --- a/kafka-ui-react-app/src/components/Topics/Details/Details.tsx +++ b/kafka-ui-react-app/src/components/Topics/Details/Details.tsx @@ -2,7 +2,12 @@ import React from 'react'; import { ClusterName, Topic, TopicDetails, TopicName } from 'redux/interfaces'; import Breadcrumb from 'components/common/Breadcrumb/Breadcrumb'; import { NavLink, Switch, Route } from 'react-router-dom'; -import { clusterTopicsPath, clusterTopicSettingsPath, clusterTopicPath, clusterTopicMessagesPath } from 'lib/paths'; +import { + clusterTopicsPath, + clusterTopicSettingsPath, + clusterTopicPath, + clusterTopicMessagesPath, +} from 'lib/paths'; import OverviewContainer from './Overview/OverviewContainer'; import MessagesContainer from './Messages/MessagesContainer'; import SettingsContainer from './Settings/SettingsContainer'; @@ -12,17 +17,16 @@ interface Props extends Topic, TopicDetails { topicName: TopicName; } -const Details: React.FC = ({ - clusterName, - topicName, -}) => { +const Details: React.FC = ({ clusterName, topicName }) => { return (
- + {topicName}
@@ -57,9 +61,21 @@ const Details: React.FC = ({
- - - + + +