Parcourir la source

81100 delete unnecessary code

SULLEY\ryo-h il y a 4 ans
Parent
commit
6d193be981

+ 0 - 1
packages/app/src/components/SearchPage/DeleteSelectedPageGroup.tsx

@@ -6,7 +6,6 @@ import { CheckboxType } from '../../interfaces/search';
 const logger = loggerFactory('growi:searchResultList');
 
 type Props = {
-  checkboxState: CheckboxType,
   selectedPagesCount: number,
   searchedPagesCount: number,
   onClickInvoked?: () => void,

+ 0 - 3
packages/app/src/components/SearchPage/SearchControl.tsx

@@ -3,11 +3,9 @@ import { useTranslation } from 'react-i18next';
 import SearchPageForm from './SearchPageForm';
 import AppContainer from '../../client/services/AppContainer';
 import DeleteSelectedPageGroup from './DeleteSelectedPageGroup';
-import { CheckboxType } from '../../interfaces/search';
 
 type Props = {
   searchingKeyword: string,
-  checkboxState: CheckboxType,
   appContainer: AppContainer,
   selectedPagesCount: number,
   searchedPagesCount: number,
@@ -54,7 +52,6 @@ const SearchControl: FC <Props> = (props: Props) => {
       <div className="d-flex my-4">
         {/* Todo: design will be fixed in #80324. Function will be implemented in #77525 */}
         <DeleteSelectedPageGroup
-          checkboxState={props.checkboxState}
           onClickInvoked={onDeleteSelectedPageHandler}
           onClickSelectAllCheckbox={props.onClickSelectAllCheckbox}
           selectedPagesCount={props.selectedPagesCount}