|
|
@@ -1,7 +1,6 @@
|
|
|
import React, {
|
|
|
forwardRef, ForwardRefRenderFunction, useEffect, useImperativeHandle, useRef, useState,
|
|
|
} from 'react';
|
|
|
-import { useTranslation } from 'react-i18next';
|
|
|
import { ISelectableAll } from '~/client/interfaces/selectable-all';
|
|
|
import AppContainer from '~/client/services/AppContainer';
|
|
|
import { IPageWithMeta } from '~/interfaces/page';
|
|
|
@@ -24,8 +23,6 @@ type Props = {
|
|
|
}
|
|
|
|
|
|
const SearchPageBaseSubstance: ForwardRefRenderFunction<ISelectableAll, Props> = (props:Props, ref) => {
|
|
|
- const { t } = useTranslation();
|
|
|
-
|
|
|
const {
|
|
|
appContainer,
|
|
|
pages,
|
|
|
@@ -130,14 +127,6 @@ const SearchPageBaseSubstance: ForwardRefRenderFunction<ISelectableAll, Props> =
|
|
|
{searchResultListHead}
|
|
|
</div>
|
|
|
|
|
|
- {/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
|
|
|
- { pages.length === 0 && (
|
|
|
- <div className="d-flex justify-content-center h2 text-muted my-5">
|
|
|
- 0 {t('search_result.page_number_unit')}
|
|
|
- </div>
|
|
|
- ) }
|
|
|
-
|
|
|
- {/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}
|
|
|
{ pages.length > 0 && (
|
|
|
<div className="page-list px-md-4">
|
|
|
<SearchResultList
|