diff --git a/src/App.tsx b/src/App.tsx index b5c86b6..8c356b9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import React from 'react'; import './App.scss'; import Sidebar from './Components/Sidebar/Sidebar'; -import { SVGSidebar } from './Components/SVGSidebar/SVGSidebar'; +import { ElementsSidebar } from './Components/ElementsSidebar/ElementsSidebar'; import { AvailableContainer } from './Interfaces/AvailableContainer'; import { Configuration } from './Interfaces/Configuration'; import { Container } from './Components/SVG/Elements/Container'; @@ -133,7 +133,7 @@ class App extends React.Component { buttonOnClick={(type: string) => this.AddContainer(type)} /> - void } -export class SVGSidebar extends React.Component { +export class ElementsSidebar extends React.Component { public iterateChilds(handleContainer: (container: Container, depth: number) => void): React.ReactNode { // TODO: fix this by using dfs or sort const root = this.props.MainContainer; @@ -49,7 +49,7 @@ export class SVGSidebar extends React.Component { const text = '\t\t'.repeat(depth) + key; const selectedClass: string = this.props.SelectedContainer !== null && this.props.SelectedContainer.props.id === container.props.id - ? 'bg-blue-500 hover:bg-slate-500' + ? 'bg-blue-500 hover:bg-blue-600' : 'bg-slate-400 hover:bg-slate-600'; containerRows.push(