// jshint esversion: 6 /* rc slider https://www.npmjs.com/package/rc-slider */ import React from "react"; import { connect } from "react-redux"; // import { FaChevronRight, FaChevronDown } from "react-icons/fa"; import { AnchorButton, Icon } from "@blueprintjs/core"; import Truncate from "../util/truncate"; import HistogramBrush from "../brushableHistogram"; // import TestMiniHisto from "./test_miniHisto"; import * as globals from "../../globals"; // import GeneMenus from "./menus/geneMenus"; @connect(() => { return {}; }) class Gene extends React.Component { constructor(props) { super(props); this.state = { geneIsExpanded: false, }; } onColorChangeClick = () => { const { dispatch, gene } = this.props; dispatch({ type: "color by expression", colorAccessor: gene, }); }; handleGeneExpandClick = () => { const { geneIsExpanded } = this.state; this.setState({ geneIsExpanded: !geneIsExpanded }); }; render() { const { gene } = this.props; const { geneIsExpanded } = this.state; return (
{}} style={{ cursor: "pointer", }} > {gene} } /> {/* */}
{/* */}
); } } export default Gene; // {}} // active={false /* todo gene sets */} // intent="none" // icon={} // /> // {geneIsExpanded ? ( // // ) : ( // // )}