Skip to content

Commit abd242c

Browse files
committed
FO-2772 Kommenter ut "Se alle" funksjonalitet
1 parent c5179c3 commit abd242c

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

src/components/pagination-bar/pagination-bar.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { HoyreChevron, VenstreChevron } from 'nav-frontend-chevron';
33
import cls from 'classnames';
44
import { useSokStore } from '../../stores/sok-store';
55
import './pagination-bar.less';
6-
import { DEFAULT_PAGINATION_SIZE, SEE_ALL_PAGINATION_SIZE } from '../../utils/sok-utils';
76
import Show from '../felles/show';
87
import { useDataFetcherStore } from '../../stores/data-fetcher-store';
98
import { Element } from 'nav-frontend-typografi';
@@ -19,7 +18,7 @@ function PagineringKnapp(props: React.DetailedHTMLProps<React.ButtonHTMLAttribut
1918
}
2019

2120
export function PaginationBar() {
22-
const { currentPage, totalPages, seeAll, setCurrentPage, setSeeAll, pageSize, setPageSize } = useSokStore();
21+
const { currentPage, totalPages, seeAll, setCurrentPage, pageSize } = useSokStore();
2322
const { brukereFetcher } = useDataFetcherStore();
2423

2524
const erPaForsteSide: boolean = currentPage === 1;
@@ -33,18 +32,18 @@ export function PaginationBar() {
3332
setCurrentPage(newPage);
3433
}
3534

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+
// }
4847

4948
return (
5049
<div className="pagination-bar">

0 commit comments

Comments
 (0)