Deleted useless settings parameter.
This commit is contained in:
parent
cb882cf141
commit
e6bd7fbc63
@ -204,8 +204,6 @@ const Items = ({
|
|||||||
|
|
||||||
moveDragItems,
|
moveDragItems,
|
||||||
|
|
||||||
docSpace,
|
|
||||||
|
|
||||||
setEmptyTrashDialogVisible,
|
setEmptyTrashDialogVisible,
|
||||||
trashIsEmpty,
|
trashIsEmpty,
|
||||||
|
|
||||||
@ -223,19 +221,16 @@ const Items = ({
|
|||||||
folderAccess,
|
folderAccess,
|
||||||
currentColorScheme,
|
currentColorScheme,
|
||||||
}) => {
|
}) => {
|
||||||
const getEndOfBlock = React.useCallback(
|
const getEndOfBlock = React.useCallback((item) => {
|
||||||
(item) => {
|
switch (item.key) {
|
||||||
switch (item.key) {
|
case "0-3":
|
||||||
case "0-3":
|
case "0-5":
|
||||||
case "0-5":
|
case "0-6":
|
||||||
case "0-6":
|
return true;
|
||||||
return true;
|
default:
|
||||||
default:
|
return false;
|
||||||
return false;
|
}
|
||||||
}
|
}, []);
|
||||||
},
|
|
||||||
[docSpace],
|
|
||||||
);
|
|
||||||
|
|
||||||
const getFolderIcon = React.useCallback((item) => {
|
const getFolderIcon = React.useCallback((item) => {
|
||||||
return getCatalogIconUrlByType(item.rootFolderType);
|
return getCatalogIconUrlByType(item.rootFolderType);
|
||||||
@ -428,7 +423,7 @@ export default inject(
|
|||||||
}) => {
|
}) => {
|
||||||
const { isCommunity, isPaymentPageAvailable, currentDeviceType } =
|
const { isCommunity, isPaymentPageAvailable, currentDeviceType } =
|
||||||
authStore;
|
authStore;
|
||||||
const { showText, docSpace, currentColorScheme } = settingsStore;
|
const { showText, currentColorScheme } = settingsStore;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
selection,
|
selection,
|
||||||
@ -466,7 +461,6 @@ export default inject(
|
|||||||
isPrivacy: isPrivacyFolder,
|
isPrivacy: isPrivacyFolder,
|
||||||
currentId: id,
|
currentId: id,
|
||||||
showText,
|
showText,
|
||||||
docSpace,
|
|
||||||
|
|
||||||
data: treeFolders,
|
data: treeFolders,
|
||||||
|
|
||||||
|
@ -91,7 +91,6 @@ export type TSettings = {
|
|||||||
ownerId: string;
|
ownerId: string;
|
||||||
nameSchemaId: string;
|
nameSchemaId: string;
|
||||||
enableAdmMess: boolean;
|
enableAdmMess: boolean;
|
||||||
docSpace: boolean;
|
|
||||||
standalone: boolean;
|
standalone: boolean;
|
||||||
baseDomain: string;
|
baseDomain: string;
|
||||||
passwordHash: TPasswordHash;
|
passwordHash: TPasswordHash;
|
||||||
|
@ -189,8 +189,6 @@ class SettingsStore {
|
|||||||
|
|
||||||
encryptionKeys: { [key: string]: string | boolean } = {};
|
encryptionKeys: { [key: string]: string | boolean } = {};
|
||||||
|
|
||||||
docSpace = true;
|
|
||||||
|
|
||||||
roomsMode = false;
|
roomsMode = false;
|
||||||
|
|
||||||
isHeaderVisible = false;
|
isHeaderVisible = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user