Skip to content

Commit

Permalink
resolved popup toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasun committed Apr 26, 2024
1 parent 4273936 commit a387bb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/HeaderForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ class HeaderForm extends Component {
this.setState({ removeSequences: !this.state.removeSequences });
};

openPopup = () => {
togglePopup = () => {
this.setState({ popupOpen: !this.state.popupOpen });
};

Expand Down Expand Up @@ -978,13 +978,13 @@ class HeaderForm extends Component {
{!readsExist(this.state.tracks) && (
<>
<Button
onClick={this.openPopup}
onClick={this.togglePopup}
outline
active={this.state.simplify || this.state.removeSequences}
>
<FontAwesomeIcon icon={faGear} /> Simplify
</Button>
<PopupDialog open={this.state.popupOpen} close={!this.openPopup} width="400px">
<PopupDialog open={this.state.popupOpen} close={this.togglePopup} width="400px">
<div style={{ height: "10vh"}}>
{/* Toggle for simplify small variants */}
<label className="d-flex align-items-center justify-content-between" style={{ marginBottom: "10px"}}>
Expand Down

0 comments on commit a387bb2

Please sign in to comment.