diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/workspace/WorkspaceNav.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/workspace/WorkspaceNav.tsx | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/components/workspace/WorkspaceNav.tsx b/server/sonar-web/src/main/js/components/workspace/WorkspaceNav.tsx index 34d4fc5193a..bab413e61a5 100644 --- a/server/sonar-web/src/main/js/components/workspace/WorkspaceNav.tsx +++ b/server/sonar-web/src/main/js/components/workspace/WorkspaceNav.tsx @@ -18,24 +18,19 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { ComponentDescriptor, RuleDescriptor } from './context'; +import { ComponentDescriptor } from './context'; import WorkspaceNavComponent from './WorkspaceNavComponent'; -import WorkspaceNavRule from './WorkspaceNavRule'; export interface Props { components: ComponentDescriptor[]; - rules: RuleDescriptor[]; onComponentClose: (componentKey: string) => void; onComponentOpen: (componentKey: string) => void; - onRuleClose: (ruleKey: string) => void; - onRuleOpen: (ruleKey: string) => void; open: { component?: string; rule?: string }; } export default function WorkspaceNav(props: Props) { // do not show a tab for the currently open component/rule const components = props.components.filter((x) => x.key !== props.open.component); - const rules = props.rules.filter((x) => x.key !== props.open.rule); return ( <nav className="workspace-nav"> @@ -48,15 +43,6 @@ export default function WorkspaceNav(props: Props) { onOpen={props.onComponentOpen} /> ))} - - {rules.map((rule) => ( - <WorkspaceNavRule - key={`rule-${rule.key}`} - onClose={props.onRuleClose} - onOpen={props.onRuleOpen} - rule={rule} - /> - ))} </ul> </nav> ); |