1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +00:00

Fix eslint warnings (#5635)

* 01 fix eslint warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings
This commit is contained in:
Michael An
2023-09-13 08:40:50 +08:00
committed by GitHub
parent d829ba5b23
commit 14ce391007
520 changed files with 4774 additions and 3438 deletions

View File

@@ -19,11 +19,11 @@ class ViewLinkDialog extends React.Component {
copyToClipBoard = () => {
copy(this.props.currentLinkHref);
let message = gettext('Link has been copied to clipboard');
toaster.success(message), {
toaster.success(message, {
duration: 2
};
});
this.props.toggle();
}
};
render() {
const href = this.props.currentLinkHref;
@@ -31,7 +31,7 @@ class ViewLinkDialog extends React.Component {
<Modal isOpen={true} toggle={this.props.toggle}>
<ModalHeader toggle={this.props.toggle}>{gettext('Link')}</ModalHeader>
<ModalBody>
<p><a target="_blank" href={href}>{href}</a></p>
<p><a target="_blank" href={href} rel="noreferrer">{href}</a></p>
</ModalBody>
<ModalFooter>
<Button color="secondary" onClick={this.props.toggle}>{gettext('Cancel')}</Button>{' '}