From c056f494eeae2472c0c195e52f9ee94e9a2480c6 Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Thu, 18 Jul 2024 18:27:53 +0400 Subject: [PATCH] Shared: removed useless constant --- packages/doceditor/src/app/(root)/page.tsx | 4 ++-- packages/shared/constants/index.ts | 1 - packages/shared/store/SettingsStore.ts | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/doceditor/src/app/(root)/page.tsx b/packages/doceditor/src/app/(root)/page.tsx index ad7dd93882..322d0a5b0a 100644 --- a/packages/doceditor/src/app/(root)/page.tsx +++ b/packages/doceditor/src/app/(root)/page.tsx @@ -29,8 +29,6 @@ import { headers } from "next/headers"; import { getSelectorsByUserAgent } from "react-device-detect"; -import { BRAND_NAME } from "@docspace/shared/constants"; - import { getData } from "@/utils/actions"; import { RootPageProps } from "@/types"; import Root from "@/components/Root"; @@ -45,6 +43,8 @@ const initialSearchParams: RootPageProps["searchParams"] = { editorType: undefined, }; +const BRAND_NAME = "ONLYOFFICE"; //TODO: replace to t("Common:OrganizationName"); + export const metadata: Metadata = { title: `${BRAND_NAME} DocEditor page`, diff --git a/packages/shared/constants/index.ts b/packages/shared/constants/index.ts index bdcdd8e9ad..8a027fa138 100644 --- a/packages/shared/constants/index.ts +++ b/packages/shared/constants/index.ts @@ -171,7 +171,6 @@ export const HTML_EXST = [".htm", ".mht", ".html"]; export const SYSTEM_THEME_KEY = "system_theme"; export const PRODUCT_NAME = "DocSpace"; -export const BRAND_NAME = "ONLYOFFICE"; const SDK_VERSION = "1.0.0"; export const SDK_SCRIPT_URL = diff --git a/packages/shared/store/SettingsStore.ts b/packages/shared/store/SettingsStore.ts index a85c2b88d4..f624db9937 100644 --- a/packages/shared/store/SettingsStore.ts +++ b/packages/shared/store/SettingsStore.ts @@ -78,7 +78,6 @@ import { COOKIE_EXPIRATION_YEAR, MEDIA_VIEW_URL, WRONG_PORTAL_NAME_URL, - BRAND_NAME, } from "../constants"; import { Dark, Base, TColorScheme } from "../themes"; import { toastr } from "../components/toast";