Taichi Masuyama 4 лет назад
Родитель
Сommit
c64becb57c

+ 3 - 1
packages/app/src/components/Common/Dropdown/PageItemControl.tsx

@@ -14,7 +14,9 @@ type PageItemControlProps = {
 
 const PageItemControl: FC<PageItemControlProps> = (props: PageItemControlProps) => {
 
-  const { page, isEnableActions, onClickDeleteButton, isDeletable } = props;
+  const {
+    page, isEnableActions, onClickDeleteButton, isDeletable,
+  } = props;
   const { t } = useTranslation('');
 
   const deleteButtonHandler = () => {

+ 2 - 1
packages/app/src/components/SearchPage/SearchResultListItem.tsx

@@ -3,11 +3,12 @@ import React, { FC, memo } from 'react';
 import Clamp from 'react-multiline-clamp';
 
 import { UserPicture, PageListMeta, PagePathLabel } from '@growi/ui';
+import { pagePathUtils } from 'growi-commons';
 
 import { IPageSearchResultData } from '../../interfaces/search';
 import PageItemControl from '../Common/Dropdown/PageItemControl';
-import { isTopPage } from '^/../core/dist/cjs/utils/page-path-utils';
 
+const { isTopPage } = pagePathUtils;
 
 type Props = {
   page: IPageSearchResultData,

+ 3 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -3,6 +3,7 @@ import React, {
 } from 'react';
 import nodePath from 'path';
 import { useTranslation } from 'react-i18next';
+import { pagePathUtils } from 'growi-commons';
 
 import { ItemNode } from './ItemNode';
 import { IPageHasId } from '~/interfaces/page';
@@ -12,7 +13,8 @@ import PageItemControl from '../../Common/Dropdown/PageItemControl';
 import { IPageForPageDeleteModal } from '~/components/PageDeleteModal';
 
 import TriangleIcon from '~/components/Icons/TriangleIcon';
-import { isTopPage } from '^/../core/dist/cjs/utils/page-path-utils';
+
+const { isTopPage } = pagePathUtils;
 
 
 interface ItemProps {