1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 10:26:17 +00:00
Files
seahub/frontend/src/components/permission-denied-tip.js
Michael An 14ce391007 Fix eslint warnings (#5635)
* 01 fix eslint warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings
2023-09-13 08:40:50 +08:00

15 lines
606 B
JavaScript

import React from 'react';
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-right}', '</a>');
return(
<span className="error" dangerouslySetInnerHTML={{__html: errorTip}}></span>
);
}
export default PermissionDeniedTip;