Skip to content

Commit

Permalink
KPMP-5217: extract to component
Browse files Browse the repository at this point in the history
  • Loading branch information
rlreamy committed Mar 14, 2024
1 parent 26ce54a commit 875747c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/DataViz/DataTypeSelector.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit 875747c

Please sign in to comment.