diff --git a/frontend/src/app-components/attachment/AttachmentInput.tsx b/frontend/src/app-components/attachment/AttachmentInput.tsx index e718e1e..82f3938 100644 --- a/frontend/src/app-components/attachment/AttachmentInput.tsx +++ b/frontend/src/app-components/attachment/AttachmentInput.tsx @@ -8,7 +8,6 @@ import { Box, FormHelperText, FormLabel } from "@mui/material"; import { forwardRef } from "react"; -import { useTranslation } from "react-i18next"; import { useGet } from "@/hooks/crud/useGet"; import { useHasPermission } from "@/hooks/useHasPermission"; @@ -47,7 +46,6 @@ const AttachmentInput = forwardRef( ref, ) => { const hasPermission = useHasPermission(); - const { t } = useTranslation(); const handleChange = (attachment: IAttachment | null) => { onChange && onChange(attachment?.id || null, attachment?.type || null); }; @@ -84,9 +82,7 @@ const AttachmentInput = forwardRef( enableMediaLibrary={enableMediaLibrary} onChange={handleChange} /> - ) : ( - t("message.no_attachment") - )} + ) : null} {helperText ? ( {helperText} ) : null} diff --git a/frontend/src/i18n/i18n.types.ts b/frontend/src/i18n/i18n.types.ts index 04d7c25..a9ac772 100644 --- a/frontend/src/i18n/i18n.types.ts +++ b/frontend/src/i18n/i18n.types.ts @@ -1,5 +1,13 @@ import { TOptionsBase } from "i18next"; +/* + * Copyright © 2024 Hexastack. All rights reserved. + * + * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: + * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. + * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). + */ + import { translations } from "."; import { TFilterNestedKeysOfType } from "@/types/common/object.types"; diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 0022989..c3d6f95 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -1,3 +1,11 @@ +/* + * Copyright © 2024 Hexastack. All rights reserved. + * + * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: + * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. + * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). + */ + import en from "@/i18n/en/translation.json"; import fr from "@/i18n/fr/translation.json"; diff --git a/frontend/src/types/common/object.types.ts b/frontend/src/types/common/object.types.ts index d59f17e..ccf9d8f 100644 --- a/frontend/src/types/common/object.types.ts +++ b/frontend/src/types/common/object.types.ts @@ -4,7 +4,6 @@ * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms: * 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission. * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). - * 3. SaaS Restriction: This software, or any derivative of it, may not be used to offer a competing product or service (SaaS) without prior written consent from Hexastack. Offering the software as a service or using it in a commercial cloud environment without express permission is strictly prohibited. */ export type TFilterNestedKeysOfType = T extends object