diff --git a/src/components/SidebarItem/SidebarItem.jsx b/src/components/SidebarItem/SidebarItem.jsx index 12b950111fba..802b8814038b 100644 --- a/src/components/SidebarItem/SidebarItem.jsx +++ b/src/components/SidebarItem/SidebarItem.jsx @@ -2,7 +2,7 @@ import PropTypes from "prop-types"; import { Component } from "react"; import "./SidebarItem.scss"; import { NavLink } from "react-router-dom"; -import ChevronRightIcon from "../../styles/icons/chevron-right.svg"; +import GraphIcon from "../../styles/icons/graph.svg"; import BarIcon from "../../styles/icons/vertical-bar.svg"; import list2Tree from "../../utilities/list2Tree/index.js"; @@ -57,6 +57,7 @@ export default class SidebarItem extends Component { const { title, anchors = [] } = this.props; const openMod = this.state.open ? `${block}--open` : ""; const disabledMod = anchors.length === 0 ? `${block}--disabled` : ""; + const isDependencyGraph = title === "Dependency Graph"; const filteredAnchors = anchors.filter((anchor) => anchor.level > 1); const tree = list2Tree(title, filteredAnchors); @@ -64,19 +65,20 @@ export default class SidebarItem extends Component { return (
{anchors.length > 0 ? ( - + /> + ) : isDependencyGraph ? ( + ) : ( + + + + + + + + +