Skip to content

Commit

Permalink
FIX ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Jun 30, 2023
1 parent 5a00756 commit c45c094
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions client/src/components/ModuleDetails/ModuleDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class ModuleDetails extends Component {
* Toggle the popover with module details being open or not
*/
toggle(event) {
this.setState({
popoverOpen: !this.state.popoverOpen,
});
this.setState((prevState) => ({
popoverOpen: !prevState.popoverOpen,
}));

event.preventDefault();
return false;
Expand Down Expand Up @@ -122,7 +122,7 @@ ModuleDetails.propTypes = {
link: PropTypes.string,
linkTitle: PropTypes.string,
securityAlerts: PropTypes.array,
rating: PropTypes.number
rating: PropTypes.number,
}),
};

Expand Down
2 changes: 1 addition & 1 deletion client/src/legacy/entwine/CheckForUpdates.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ window.jQuery.entwine('ss', ($) => {
async: true,
success: (data) => {
self.clearLoading(JSON.parse(data));
}
},
});
},

Expand Down
2 changes: 1 addition & 1 deletion client/src/legacy/entwine/GridfieldDropdownFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ window.jQuery.entwine('ss', ($) => {
*/
onchange() {
this.parent().find('.action').click();
}
},
});
});
6 changes: 3 additions & 3 deletions client/src/legacy/entwine/SiteSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ window.jQuery.entwine('ss', ($) => {
<ModuleDetails
detailsId={this.attr('id')}
dataSchema={dataSchema}
/>
/>,
);
},

Expand All @@ -29,7 +29,7 @@ window.jQuery.entwine('ss', ($) => {
root.unmount();
this.setReactRoot(null);
}
}
},
});

$('.site-summary .ss-gridfield-item').entwine({
Expand All @@ -50,6 +50,6 @@ window.jQuery.entwine('ss', ($) => {
this.data('popover-open', true);
this.find('.package-summary__module-info-trigger').click();
}
}
},
});
});

0 comments on commit c45c094

Please sign in to comment.