mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 07:28:12 +08:00
* componetization * Ontologies as own menu option * remove log * remove dead suggest module
44 lines
977 B
JavaScript
44 lines
977 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import { InputGroup } from "@blueprintjs/core";
|
|
|
|
const VanillaInput = props => {
|
|
const { text, handleTextChange } = props;
|
|
return (
|
|
<InputGroup
|
|
autoFocus
|
|
value={text}
|
|
intent="none"
|
|
onChange={e => handleTextChange?.(e.target.value)}
|
|
leftIcon="tag"
|
|
/>
|
|
);
|
|
};
|
|
|
|
@connect(state => ({
|
|
colorAccessor: state.colors.colorAccessor,
|
|
categoricalSelection: state.categoricalSelection,
|
|
annotations: state.annotations,
|
|
universe: state.universe,
|
|
world: state.world,
|
|
ontology: state.ontology?.terms,
|
|
ontologyLoading: state.ontology?.loading
|
|
}))
|
|
class AnnoInputs extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.state = {};
|
|
}
|
|
|
|
render() {
|
|
const { handleTextChange, text } = this.props;
|
|
return (
|
|
<div>
|
|
<VanillaInput text={text} handleTextChange={handleTextChange} />
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default AnnoInputs;
|