fix: everyone group page throws error (#1450)
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Alert, Anchor } from "@mantine/core";
|
import { Alert, Anchor } from "@mantine/core";
|
||||||
import { IconExclamationCircle } from "@tabler/icons-react";
|
import { IconExclamationCircle } from "@tabler/icons-react";
|
||||||
|
|
||||||
import { createDocumentationLink } from "@homarr/definitions";
|
import { createDocumentationLink } from "@homarr/definitions";
|
||||||
import { getI18n } from "@homarr/translation/server";
|
import { useI18n } from "@homarr/translation/client";
|
||||||
|
|
||||||
export const ReservedGroupAlert = async () => {
|
export const ReservedGroupAlert = () => {
|
||||||
const t = await getI18n();
|
const t = useI18n();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Alert variant="light" color="yellow" icon={<IconExclamationCircle size="1rem" stroke={1.5} />}>
|
<Alert variant="light" color="yellow" icon={<IconExclamationCircle size="1rem" stroke={1.5} />}>
|
||||||
|
|||||||
@@ -244,7 +244,7 @@
|
|||||||
"external": "All members are from external providers and cannot be managed here"
|
"external": "All members are from external providers and cannot be managed here"
|
||||||
},
|
},
|
||||||
"reservedNotice": {
|
"reservedNotice": {
|
||||||
"message": "This group is reserved for system use and restricts some actions. {checkoutDocs}"
|
"message": "This group is reserved for system use and restricts some actions. <checkoutDocs></checkoutDocs>"
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"create": {
|
"create": {
|
||||||
|
|||||||
Reference in New Issue
Block a user