mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-29 09:27:52 +01:00
Wrap intl in span identifying translation
This commit is contained in:
68 files changed
+1076
-510
No files matched your search
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
|
||||
import Alert from "react-bootstrap/Alert";
|
||||
import { Loading, LoadingPage } from "src/components";
|
||||
import { useUser } from "src/hooks";
|
||||
import { intl } from "src/locale";
|
||||
import { T } from "src/locale";
|
||||
|
||||
interface Props {
|
||||
permission: string;
|
||||
@@ -64,7 +64,11 @@ function HasPermission({
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
return !hideError ? <Alert variant="danger">{intl.formatMessage({ id: "no-permission-error" })}</Alert> : null;
|
||||
return !hideError ? (
|
||||
<Alert variant="danger">
|
||||
<T id="no-permission-error" />
|
||||
</Alert>
|
||||
) : null;
|
||||
}
|
||||
|
||||
export { HasPermission };
|
||||
Reference in new issue
Block a user