Skip to content

Commit

Permalink
eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adambasha0 committed Sep 11, 2023
1 parent 49f9c9a commit e6dac0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions app/packs/src/components/contextActions/ModalExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,13 @@ export default class ModalExport extends React.Component {
<div className="pull-right">
<ButtonToolbar>
<Button bsStyle="primary" onClick={onHide}>Cancel</Button>
<DropdownButton dropup bsStyle="warning" id="md-export-dropdown"
title="XLSX/SD Export" onSelect={this.handleClick}>
<DropdownButton
dropup
bsStyle="warning"
id="md-export-dropdown"
title="XLSX/SD Export"
onSelect={this.handleClick}
>
<MenuItem eventKey="1">XLSX Export</MenuItem>
<MenuItem eventKey="2" disabled={sdfChemicalExport}>SDF Export</MenuItem>
</DropdownButton>
Expand Down
8 changes: 4 additions & 4 deletions app/packs/src/components/contextActions/ModalImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default class ModalImport extends React.Component {
NotificationActions.add(notification);
}

handleFileDrop(attachment_file) {
this.setState({ file: attachment_file[0] });
handleFileDrop(attachmentFile) {
this.setState({ file: attachmentFile[0] });
}

handleAttachmentRemove() {
Expand Down Expand Up @@ -73,7 +73,7 @@ export default class ModalImport extends React.Component {

isDisabled() {
const { file } = this.state;
return file == null
return file == null;
}

render() {
Expand All @@ -87,6 +87,6 @@ export default class ModalImport extends React.Component {
<Button bsStyle="warning" onClick={() => this.handleClick()} disabled={this.isDisabled()}>Import</Button>
</ButtonToolbar>
</div>
)
);
}
}

0 comments on commit e6dac0d

Please sign in to comment.