From 875747cbdeffe5f08a645a952d33f3af4db16a39 Mon Sep 17 00:00:00 2001 From: Becky Reamy Date: Thu, 14 Mar 2024 15:45:22 -0400 Subject: [PATCH] KPMP-5217: extract to component --- src/components/DataViz/DataTypeSelector.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/DataViz/DataTypeSelector.js b/src/components/DataViz/DataTypeSelector.js index 33cdd553..b6c6ab55 100644 --- a/src/components/DataViz/DataTypeSelector.js +++ b/src/components/DataViz/DataTypeSelector.js @@ -1,13 +1,13 @@ import React, { Component } from "react"; import Select from "react-select"; -import { Row, Col, Container, Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; +import { Row, Col, Container} from 'reactstrap'; import ConceptSelectContainer from '../ConceptSelect/ConceptSelectContainer'; import { getTissueTypeOptions, getAllDataTypeOptions, getDataTypeOptionsWithTissueType } from "../../helpers/Utils"; import { fetchDataTypeSummaryInformation } from '../../helpers/ApolloClient'; import { handleGoogleAnalyticsEvent } from '../../helpers/googleAnalyticsHelper'; import { faChevronDown, faChevronUp } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import {CellXGeneDropdown} from './CellXGeneDropdown'; +import CellXGeneDropdown from './CellXGeneDropdown'; class DataTypeSelector extends Component { constructor(props) { @@ -27,14 +27,9 @@ class DataTypeSelector extends Component { participantsCount: '-' }, datasetToggle: 'collapsed', - snDropdownOpen: false, } } - toggleSnDropdown = () => { - this.setState({snDropdownOpen: !this.state.snDropdownOpen}); - } - componentDidUpdate(prevProps) { if ((this.props.gene.symbol !== prevProps.gene.symbol || this.props.dataType !== prevProps.dataType