|
@@ -17,10 +17,10 @@ type Props = {
|
|
|
deletionMode: boolean,
|
|
deletionMode: boolean,
|
|
|
selectedPages: ISearchedPage[],
|
|
selectedPages: ISearchedPage[],
|
|
|
onClickInvoked?: (pageId: string) => void,
|
|
onClickInvoked?: (pageId: string) => void,
|
|
|
- searchResultCount: number,
|
|
|
|
|
|
|
+ searchResultCount?: number,
|
|
|
activePage: number,
|
|
activePage: number,
|
|
|
- pagingLimit: number,
|
|
|
|
|
- onPagingNumberChanged: (activePage: number) => void,
|
|
|
|
|
|
|
+ pagingLimit?: number,
|
|
|
|
|
+ onPagingNumberChanged?: (activePage: number) => void,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const SearchResultList: FC<Props> = (props:Props) => {
|
|
const SearchResultList: FC<Props> = (props:Props) => {
|
|
@@ -39,7 +39,7 @@ const SearchResultList: FC<Props> = (props:Props) => {
|
|
|
{props.searchResultCount != null && props.searchResultCount > 0 && (
|
|
{props.searchResultCount != null && props.searchResultCount > 0 && (
|
|
|
<div className="my-4 mx-auto">
|
|
<div className="my-4 mx-auto">
|
|
|
<PagenationWrapperAny
|
|
<PagenationWrapperAny
|
|
|
- activePage={props.activePage}
|
|
|
|
|
|
|
+ activePage={props.activePage || 1}
|
|
|
changePage={props.onPagingNumberChanged}
|
|
changePage={props.onPagingNumberChanged}
|
|
|
totalItemsCount={props.searchResultCount || 0}
|
|
totalItemsCount={props.searchResultCount || 0}
|
|
|
pagingLimit={props.pagingLimit}
|
|
pagingLimit={props.pagingLimit}
|