fix: everyone group page throws error (#1450)

This commit is contained in:
Meier Lukas
2024-11-17 09:49:23 +01:00
committed by GitHub
parent 775d0a53de
commit f3ebd6ccdf
2 changed files with 6 additions and 4 deletions

View File

@@ -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} />}>

View File

@@ -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": {