yohei0125 3 лет назад
Родитель
Сommit
4ba661cc3b
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/app/src/stores/ui.tsx

+ 3 - 2
packages/app/src/stores/ui.tsx

@@ -1,6 +1,7 @@
 import { RefObject } from 'react';
 
 import { isClient, isServer, pagePathUtils } from '@growi/core';
+import { withUtils, SWRResponseWithUtils } from '@growi/core/src/utils/with-utils';
 import { Breakpoint, addBreakpointListener } from '@growi/ui';
 import SimpleBar from 'simplebar-react';
 import {
@@ -16,7 +17,7 @@ import { ISidebarConfig } from '~/interfaces/sidebar-config';
 import { SidebarContentsType } from '~/interfaces/ui';
 import { UpdateDescCountData } from '~/interfaces/websocket';
 import loggerFactory from '~/utils/logger';
-import { withUtils, SWRResponseWithUtils } from '@growi/core/src/utils/with-utils'
+
 import {
   useCurrentPageId, useCurrentPagePath, useIsEditable, useIsTrashPage, useIsUserPage, useIsGuestUser,
   useIsNotCreatable, useIsSharedUser, useIsForbidden, useIsIdenticalPath, useCurrentUser, useIsNotFound, useShareLinkId,
@@ -237,7 +238,7 @@ export const usePreferDrawerModeByUser = (initialData?: boolean): SWRResponseWit
     },
   };
 
-  return withUtils(swrResponse, utils)
+  return withUtils(swrResponse, utils);
 
 };