Deleted useless settings parameter.

This commit is contained in:
Tatiana Lopaeva 2024-06-13 15:04:49 +03:00
parent cb882cf141
commit e6bd7fbc63
3 changed files with 11 additions and 20 deletions

View File

@ -204,8 +204,6 @@ const Items = ({
moveDragItems,
docSpace,
setEmptyTrashDialogVisible,
trashIsEmpty,
@ -223,19 +221,16 @@ const Items = ({
folderAccess,
currentColorScheme,
}) => {
const getEndOfBlock = React.useCallback(
(item) => {
switch (item.key) {
case "0-3":
case "0-5":
case "0-6":
return true;
default:
return false;
}
},
[docSpace],
);
const getEndOfBlock = React.useCallback((item) => {
switch (item.key) {
case "0-3":
case "0-5":
case "0-6":
return true;
default:
return false;
}
}, []);
const getFolderIcon = React.useCallback((item) => {
return getCatalogIconUrlByType(item.rootFolderType);
@ -428,7 +423,7 @@ export default inject(
}) => {
const { isCommunity, isPaymentPageAvailable, currentDeviceType } =
authStore;
const { showText, docSpace, currentColorScheme } = settingsStore;
const { showText, currentColorScheme } = settingsStore;
const {
selection,
@ -466,7 +461,6 @@ export default inject(
isPrivacy: isPrivacyFolder,
currentId: id,
showText,
docSpace,
data: treeFolders,

View File

@ -91,7 +91,6 @@ export type TSettings = {
ownerId: string;
nameSchemaId: string;
enableAdmMess: boolean;
docSpace: boolean;
standalone: boolean;
baseDomain: string;
passwordHash: TPasswordHash;

View File

@ -189,8 +189,6 @@ class SettingsStore {
encryptionKeys: { [key: string]: string | boolean } = {};
docSpace = true;
roomsMode = false;
isHeaderVisible = false;