diff --git a/src/components/DataViz/CellXGeneDropdown.js b/src/components/DataViz/CellXGeneDropdown.js new file mode 100644 index 00000000..b8e5f326 --- /dev/null +++ b/src/components/DataViz/CellXGeneDropdown.js @@ -0,0 +1,34 @@ +import React, {Component} from 'react'; +import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; + +class CellXGeneDropdown extends Component { + + constructor(props) { + super(props); + this.state = { + dropdownOpen: false + } + } + + toggle =() => { + this.setState({dropdownOpen: !this.state.dropdownOpen}); + } + + render() { + return ( + + View DiffEx in CellXGene + + + Version 1.0 (Nature 2023) + + + Version 1.5 (Coming Soon) + + + + ) + } +} + +export default CellXGeneDropdown; \ No newline at end of file diff --git a/src/components/DataViz/DataTypeSelector.js b/src/components/DataViz/DataTypeSelector.js index 50e83354..0ee0642c 100644 --- a/src/components/DataViz/DataTypeSelector.js +++ b/src/components/DataViz/DataTypeSelector.js @@ -1,12 +1,13 @@ import React, { Component } from "react"; import Select from "react-select"; -import { Row, Col, Container } 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'; class DataTypeSelector extends Component { constructor(props) { @@ -23,13 +24,12 @@ class DataTypeSelector extends Component { akiCount: '-', ckdCount: '-', dmrCount: '-', - participantsCount: '-', + participantsCount: '-' }, - datasetToggle: 'collapsed' + datasetToggle: 'collapsed', } } - componentDidUpdate(prevProps) { if ((this.props.gene.symbol !== prevProps.gene.symbol || this.props.dataType !== prevProps.dataType @@ -263,11 +263,10 @@ class DataTypeSelector extends Component { : Hide dataset details } {(this.props.dataType === 'sc' ) && - Disease-specific DiffEx in cellxgene + } - { - (this.props.dataType === 'sn') && - Disease-specific DiffEx in cellxgene + { (this.props.dataType === 'sn') && + } } diff --git a/src/index.scss b/src/index.scss index c61259d2..02676715 100644 --- a/src/index.scss +++ b/src/index.scss @@ -954,4 +954,8 @@ tr.MuiTableRow-root:nth-child(even) { .nav-link{ color: rgba(0,0,0,.55) +} + +.cellxgene-dropdown { + margin-top: -21px; } \ No newline at end of file