|
|
@@ -8,7 +8,6 @@ import {
|
|
|
} from 'reactstrap';
|
|
|
|
|
|
import { ISelectableAll, ISelectableAndIndeterminatable } from '~/client/interfaces/selectable-all';
|
|
|
-import AppContainer from '~/client/services/AppContainer';
|
|
|
import { toastSuccess, toastError } from '~/client/util/apiNotification';
|
|
|
import { apiv3Post } from '~/client/util/apiv3-client';
|
|
|
import { V5ConversionErrCode } from '~/interfaces/errors/v5-conversion-error';
|
|
|
@@ -190,21 +189,12 @@ ConvertByPathModal.displayName = 'ConvertByPathModal';
|
|
|
* LegacyPage
|
|
|
*/
|
|
|
|
|
|
-type Props = {
|
|
|
- appContainer: AppContainer,
|
|
|
-}
|
|
|
-
|
|
|
-const PrivateLegacyPages = (props: Props): JSX.Element => {
|
|
|
+const PrivateLegacyPages = (): JSX.Element => {
|
|
|
const { t } = useTranslation();
|
|
|
const { data: currentUser } = useCurrentUser();
|
|
|
|
|
|
const isAdmin = currentUser?.admin;
|
|
|
|
|
|
- const {
|
|
|
- appContainer,
|
|
|
- } = props;
|
|
|
-
|
|
|
-
|
|
|
const [keyword, setKeyword] = useState<string>(initQ);
|
|
|
const [offset, setOffset] = useState<number>(0);
|
|
|
const [limit, setLimit] = useState<number>(INITIAL_PAGING_SIZE);
|
|
|
@@ -442,7 +432,6 @@ const PrivateLegacyPages = (props: Props): JSX.Element => {
|
|
|
<>
|
|
|
<SearchPageBase
|
|
|
ref={searchPageBaseRef}
|
|
|
- appContainer={appContainer}
|
|
|
pages={data?.data}
|
|
|
onSelectedPagesByCheckboxesChanged={selectedPagesByCheckboxesChangedHandler}
|
|
|
forceHideMenuItems={[MenuItemType.BOOKMARK, MenuItemType.RENAME, MenuItemType.DUPLICATE, MenuItemType.REVERT, MenuItemType.PATH_RECOVERY]}
|