mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -4,11 +4,11 @@ import { gettext, loginUrl } from '../utils/constants';
|
||||
function PermissionDeniedTip() {
|
||||
let reloginUrl = `${loginUrl}?next=${encodeURIComponent(location.href)}`;
|
||||
let errorTip = gettext('Permission denied. Please try {placeholder-left}login again.{placeholder-right}');
|
||||
errorTip = errorTip.replace('{placeholder-left}', '<a class="action-link p-0" href='+ reloginUrl + '>')
|
||||
errorTip = errorTip.replace('{placeholder-left}', '<a class="action-link p-0" href='+ reloginUrl + '>');
|
||||
errorTip = errorTip.replace('{placeholder-right}', '</a>');
|
||||
return(
|
||||
<span className="error" dangerouslySetInnerHTML={{__html: errorTip}}></span>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default PermissionDeniedTip;
|
Reference in New Issue
Block a user