@@ -3,7 +3,6 @@ import { HoyreChevron, VenstreChevron } from 'nav-frontend-chevron';
3
3
import cls from 'classnames' ;
4
4
import { useSokStore } from '../../stores/sok-store' ;
5
5
import './pagination-bar.less' ;
6
- import { DEFAULT_PAGINATION_SIZE , SEE_ALL_PAGINATION_SIZE } from '../../utils/sok-utils' ;
7
6
import Show from '../felles/show' ;
8
7
import { useDataFetcherStore } from '../../stores/data-fetcher-store' ;
9
8
import { Element } from 'nav-frontend-typografi' ;
@@ -19,7 +18,7 @@ function PagineringKnapp(props: React.DetailedHTMLProps<React.ButtonHTMLAttribut
19
18
}
20
19
21
20
export function PaginationBar ( ) {
22
- const { currentPage, totalPages, seeAll, setCurrentPage, setSeeAll , pageSize, setPageSize } = useSokStore ( ) ;
21
+ const { currentPage, totalPages, seeAll, setCurrentPage, pageSize } = useSokStore ( ) ;
23
22
const { brukereFetcher } = useDataFetcherStore ( ) ;
24
23
25
24
const erPaForsteSide : boolean = currentPage === 1 ;
@@ -33,18 +32,18 @@ export function PaginationBar() {
33
32
setCurrentPage ( newPage ) ;
34
33
}
35
34
36
- function handleSeeAllChanged ( ) {
37
- const toggledSeeAll = ! seeAll ;
38
-
39
- if ( toggledSeeAll ) {
40
- setPageSize ( SEE_ALL_PAGINATION_SIZE ) ;
41
- } else {
42
- setPageSize ( DEFAULT_PAGINATION_SIZE ) ;
43
- }
44
-
45
- setCurrentPage ( 1 ) ;
46
- setSeeAll ( toggledSeeAll ) ;
47
- }
35
+ // function handleSeeAllChanged() {
36
+ // const toggledSeeAll = !seeAll;
37
+ //
38
+ // if (toggledSeeAll) {
39
+ // setPageSize(SEE_ALL_PAGINATION_SIZE);
40
+ // } else {
41
+ // setPageSize(DEFAULT_PAGINATION_SIZE);
42
+ // }
43
+ //
44
+ // setCurrentPage(1);
45
+ // setSeeAll(toggledSeeAll);
46
+ // }
48
47
49
48
return (
50
49
< div className = "pagination-bar" >
0 commit comments