Deleted useless code.

This commit is contained in:
Tatiana Lopaeva 2024-06-10 21:29:28 +03:00
parent 1197023bd6
commit dd0ab01575
4 changed files with 6 additions and 7 deletions

View File

@ -28,7 +28,7 @@ import React, { useEffect, useRef, useState } from "react";
import { withTranslation } from "react-i18next";
import styled, { css } from "styled-components";
import { useNavigate } from "react-router-dom";
import { DOCSPACE, PORTAL } from "@docspace/shared/constants";
import { PORTAL } from "@docspace/shared/constants";
import { inject, observer } from "mobx-react";
import { mobile, tablet } from "@docspace/shared/utils/device";
@ -143,7 +143,7 @@ const PortalIntegration = (props) => {
const presetsData = [
{
title: DOCSPACE,
title: PORTAL,
description: t("PortalDescription", { portalName: PORTAL }),
image: theme.isBase ? PortalImg : PortalImgDark,
handleOnClick: navigateToPortal,

View File

@ -25,7 +25,7 @@
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import { PageType } from "@docspace/shared/enums";
import { DOCSPACE } from "@docspace/shared/constants";
import { PORTAL } from "@docspace/shared/constants";
import SettingsReactSvgUrl from "PUBLIC_DIR/images/settings.react.svg?url";
/**
* Array for generation current settings tree.
@ -487,7 +487,7 @@ export const settingsTree = [
key: "7-1-6",
icon: "",
link: "docspace",
tKey: DOCSPACE,
tKey: PORTAL,
},
],
},

View File

@ -46,7 +46,6 @@ export const LOADER_STYLE = Object.freeze({
animate: true,
});
export const DOCSPACE = "DocSpace";
export const MANAGER = "manager";
export const TOTAL_SIZE = "total_size";
export const FILE_SIZE = "file_size";

View File

@ -24,11 +24,11 @@
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import { DOCSPACE } from "../../constants";
import { PORTAL } from "../../constants";
import { TBreadCrumb } from "../../components/selector/Selector.types";
export const DEFAULT_BREAD_CRUMB: TBreadCrumb = {
label: DOCSPACE,
label: PORTAL,
id: 0,
isRoom: false,
};