diff --git a/src/internal-packages/sidebar/lib/components/sidebar-collection.jsx b/src/internal-packages/sidebar/lib/components/sidebar-collection.jsx index 51ad342553c..e887cffa0af 100644 --- a/src/internal-packages/sidebar/lib/components/sidebar-collection.jsx +++ b/src/internal-packages/sidebar/lib/components/sidebar-collection.jsx @@ -1,11 +1,15 @@ const app = require('ampersand-app'); const React = require('react'); +// const debug = require('debug')('mongodb-compass:sidebar:sidebar-collection'); const { NamespaceStore } = require('hadron-reflux-store'); class SidebarCollection extends React.Component { constructor() { super(); + this.state = { + active: false + }; this.handleClick = this.handleClick.bind(this); this.CollectionStore = app.appRegistry.getStore('App.CollectionStore'); } @@ -33,10 +37,14 @@ class SidebarCollection extends React.Component { render() { const collectionName = this.getCollectionName(); + let className = 'compass-sidebar-title compass-sidebar-title-is-actionable'; + if (this.props.activeNamespace === this.props._id) { + className += ' compass-sidebar-title-is-active'; + } return (