Просмотр исходного кода

refactor: update removePageHandler to use SelectablePage type

Shun Miyazawa 8 месяцев назад
Родитель
Сommit
d632125afb

+ 1 - 2
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantManagementModal/AiAssistantManagementEditPages.tsx

@@ -1,6 +1,5 @@
 import React, { useCallback, type JSX } from 'react';
 
-import type { IPageHasId } from '@growi/core';
 import { useTranslation } from 'react-i18next';
 import { ModalBody } from 'reactstrap';
 
@@ -23,7 +22,7 @@ export const AiAssistantManagementEditPages = (props: Props): JSX.Element => {
 
   const { selectedPages, onRemove } = props;
 
-  const removePageHandler = useCallback((page: IPageHasId) => {
+  const removePageHandler = useCallback((page: SelectablePage) => {
     onRemove(page.path);
   }, [onRemove]);