1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +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

@@ -39,10 +39,10 @@ class InternalLink extends React.Component {
copyToClipBoard = () => {
copy(this.state.smartLink);
let message = gettext('Internal link has been copied to clipboard');
toaster.success(message), {
toaster.success(message, {
duration: 2
};
}
});
};
render() {
if (this.state.isInternalLoding) {
@@ -54,7 +54,7 @@ class InternalLink extends React.Component {
{gettext('An internal link is a link to a file or folder that can be accessed by users with read permission to the file or folder.')}
</p>
<p>
<a target="_blank" href={this.state.smartLink}>{this.state.smartLink}</a>
<a target="_blank" href={this.state.smartLink} rel="noreferrer">{this.state.smartLink}</a>
</p>
<Button onClick={this.copyToClipBoard} color="primary" className="mt-2">{gettext('Copy')}</Button>
</div>