diff --git a/ui/src/dashboards/components/DashboardsPageContents.tsx b/ui/src/dashboards/components/DashboardsPageContents.tsx index d05ebd188..c09b14dfc 100644 --- a/ui/src/dashboards/components/DashboardsPageContents.tsx +++ b/ui/src/dashboards/components/DashboardsPageContents.tsx @@ -8,7 +8,6 @@ import SearchBar from 'src/hosts/components/SearchBar' import FancyScrollbar from 'src/shared/components/FancyScrollbar' import {ErrorHandling} from 'src/shared/decorators/errors' import OverlayTechnology from 'src/reusable_ui/components/overlays/OverlayTechnology' -import Dropdown from 'src/reusable_ui/components/dropdowns/Dropdown' import {Dashboard} from 'src/types' import {Notification} from 'src/types/notifications' @@ -29,15 +28,8 @@ interface Props { interface State { searchTerm: string isOverlayVisible: boolean - dropdownSelectedKey: string } -const dropdownItems = [ - {key: 'swag-a', text: 'Ultra Swag'}, - {key: 'swag-b', text: 'Secret Swag'}, - {key: 'swag-c', text: 'Shady Swag'}, -] - @ErrorHandling class DashboardsPageContents extends Component { constructor(props) { @@ -46,7 +38,6 @@ class DashboardsPageContents extends Component { this.state = { searchTerm: '', isOverlayVisible: false, - dropdownSelectedKey: dropdownItems[0].key, } } @@ -75,7 +66,6 @@ class DashboardsPageContents extends Component { onExportDashboard={onExportDashboard} dashboardLink={dashboardLink} /> - {this.dropdown} @@ -85,26 +75,6 @@ class DashboardsPageContents extends Component { ) } - private get dropdown() { - const {dropdownSelectedKey} = this.state - return ( - - {dropdownItems.map(item => ( - - {item.text} - - ))} - - ) - } - - private handleDropdownChange = item => { - this.setState({dropdownSelectedKey: item.key}) - } - private get renderPanelHeading(): JSX.Element { const {onCreateDashboard} = this.props