Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chgibb committed Sep 18, 2019
1 parent 2227b26 commit 609aa6a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 39 deletions.
@@ -1,10 +1,11 @@
import * as React from "react";
import { Grid } from '../../../../../components/grid';
import { IconButton } from '../../../../../components/iconButton';
import { blue } from '../../../../../styles/colours';
import { ChevronLeft } from '../../../../../components/icons/chevronLeft';
import { AlignData } from '../../../../../../alignData';
import { CircularFigure } from '../../../../../circularFigure/circularFigure';

import {Grid} from "../../../../../components/grid";
import {IconButton} from "../../../../../components/iconButton";
import {blue} from "../../../../../styles/colours";
import {ChevronLeft} from "../../../../../components/icons/chevronLeft";
import {AlignData} from "../../../../../../alignData";
import {CircularFigure} from "../../../../../circularFigure/circularFigure";

export interface AlignmentCoverageTracksOverlayProps
{
Expand Down
Expand Up @@ -4,10 +4,10 @@ import {CircularFigure} from "../../../../../circularFigure/circularFigure";
import {Fasta} from "../../../../../../fasta";
import {AlignData} from "../../../../../../alignData";
import {AlignmentsReportTable} from "../../../../../containers/tables/alignmentsReportTable";
import {getReferenceFromUuid} from "../../../../../../uniquelyAddressable";

import {Overlay} from "./../overlay";
import { getReferenceFromUuid } from '../../../../../../uniquelyAddressable';
import { AlignmentCoverageTrackOverlay } from './alignmentCoverageTracksOverlay';
import {AlignmentCoverageTrackOverlay} from "./alignmentCoverageTracksOverlay";

export interface CoverageTrackOverlayProps
{
Expand Down Expand Up @@ -48,38 +48,39 @@ export class CoverageTrackOverlay extends React.Component<CoverageTrackOverlayPr
>
{
selectedAlign ?
<AlignmentCoverageTrackOverlay
onClose={() => {
this.setState({
selectedAlignUuid : ""
});
}}
align={selectedAlign}
figure={this.props.figure}
/> :
<AlignmentsReportTable
viewMore={(rowData) =>
{
this.setState({
selectedAlignUuid : rowData.uuid
});
}}
clickableCells={false}
toolTipText="View Coverage Tracks For This Alignment"
aligns={this.props.aligns.filter((x) =>
{
if(x.fasta)
{
if(x.fasta.uuid == this.props.figure.uuidFasta)
<AlignmentCoverageTrackOverlay
onClose={() =>
{
return x;
}
}
return undefined;
})}
fastas={this.props.fastas}
onRowClick={() => null}
/>
this.setState({
selectedAlignUuid : ""
});
}}
align={selectedAlign}
figure={this.props.figure}
/> :
<AlignmentsReportTable
viewMore={(rowData) =>
{
this.setState({
selectedAlignUuid : rowData.uuid
});
}}
clickableCells={false}
toolTipText="View Coverage Tracks For This Alignment"
aligns={this.props.aligns.filter((x) =>
{
if(x.fasta)
{
if(x.fasta.uuid == this.props.figure.uuidFasta)
{
return x;
}
}
return undefined;
})}
fastas={this.props.fastas}
onRowClick={() => null}
/>
}
</Overlay>
);
Expand Down

0 comments on commit 609aa6a

Please sign in to comment.