SULLEY\ryo-h 4 лет назад
Родитель
Сommit
226e8f1bc9
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/app/src/components/SearchPage/SearchOptionModal.tsx

+ 3 - 3
packages/app/src/components/SearchPage/SearchOptionModal.tsx

@@ -21,7 +21,7 @@ const SearchOptionModal: FC<Props> = (props: Props) => {
   const { t } = useTranslation('');
   const { t } = useTranslation('');
 
 
   const {
   const {
-    isOpen, onClose, switchExcludingUnderUserPage, switchExcludingUnderTrashPage,
+    isOpen, onClose, onSwitchExcludingUserPagesInvoked, onSwitchExcludingTrashPagesInvoked,
     excludeUnderUserPage, excludeUnderTrashPage,
     excludeUnderUserPage, excludeUnderTrashPage,
   } = props;
   } = props;
 
 
@@ -50,7 +50,7 @@ const SearchOptionModal: FC<Props> = (props: Props) => {
               <input
               <input
                 className="mr-2"
                 className="mr-2"
                 type="checkbox"
                 type="checkbox"
-                onClick={props.onSwitchExcludingUserPagesInvoked}
+                onClick={onSwitchExcludingUserPagesInvoked}
                 checked={!excludeUnderUserPage}
                 checked={!excludeUnderUserPage}
               />
               />
               {t('Include Subordinated Target Page', { target: '/user' })}
               {t('Include Subordinated Target Page', { target: '/user' })}
@@ -61,7 +61,7 @@ const SearchOptionModal: FC<Props> = (props: Props) => {
               <input
               <input
                 className="mr-2"
                 className="mr-2"
                 type="checkbox"
                 type="checkbox"
-                onClick={props.onSwitchExcludingTrashPagesInvoked}
+                onClick={onSwitchExcludingTrashPagesInvoked}
                 checked={!excludeUnderTrashPage}
                 checked={!excludeUnderTrashPage}
               />
               />
               {t('Include Subordinated Target Page', { target: '/trash' })}
               {t('Include Subordinated Target Page', { target: '/trash' })}