diff --git a/ui/src/containers/SampleGridTableContainer.jsx b/ui/src/containers/SampleGridTableContainer.jsx index 1647e9f4d..c91fa2243 100644 --- a/ui/src/containers/SampleGridTableContainer.jsx +++ b/ui/src/containers/SampleGridTableContainer.jsx @@ -36,7 +36,6 @@ import TooltipTrigger from '../components/TooltipTrigger'; import { isCollected, QUEUE_RUNNING, QUEUE_STOPPED } from '../constants'; import SampleFlexView from './SampleFlexView'; import styles from './SampleGridTableContainer.module.css'; -import SampleIsaraView from './SampleIsaraView'; const SETTINGS = { dots: false, @@ -964,14 +963,9 @@ export default function SampleGridTableContainer(props) { } function getSampleListAsDrawing() { - const isCATS = type.includes('CATS'); const isFLEX = type.includes('FLEX'); const isMOCK = type.includes('Mock'); - if (isCATS) { - return ; - } - if (isFLEX) { return ( - - - ); - } - - createSamples(coord, pk) { - const samples = []; - for (let id = 1; id < 17; id++) { - const pos = this.computePos(coord, id); - samples.push(this.createSample(pk, id, pos)); - } - return samples; - } - - createCircle(coord, pk) { - return ( - - - {this.createSamples(coord, pk + 1)} - - {pk + 1} - - - ); - } - - renderPucks(numPucks) { - const allPucks = []; - for (let pk = 0; pk < numPucks; pk++) { - const coord = this.getContainerCoordinates(1, pk); - allPucks.push(this.createCircle(coord, pk)); - } - return allPucks; - } - - render() { - const numPucks = 29; - - return ( - -
-
- - - - {this.renderPucks(numPucks)} - -
-
- - ); - } -} - -function mapStateToProps(state) { - return { - queue: state.queue, - selected: state.sampleGrid.selected, - sampleList: state.sampleGrid.sampleList, - filterOptions: state.sampleGrid.filterOptions, - }; -} - -function mapDispatchToProps(dispatch) { - return { - filter: (filterOptions) => dispatch(filterAction(filterOptions)), - }; -} - -export default connect(mapStateToProps, mapDispatchToProps)(NewSampleIsaraView);