Skip to content

Commit

Permalink
display 20 rows per page in events
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander14121 committed Jan 8, 2025
1 parent 44a9359 commit 88bf2d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/routes/hendelser._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {Buildings3Icon, MagnifyingGlassIcon, TagIcon} from "@navikt/aksel-icons"
import {useState} from "react";
import {envCookie} from "~/components/cookie";
import {ClockIcon} from '@navikt/aksel-icons';
import {filter} from "minimatch";

export const loader: LoaderFunction = async ({request}) => {
const cookieHeader = request.headers.get("Cookie");
Expand All @@ -35,7 +34,7 @@ export default function FintEventTable() {
const fintEvents = useLoaderData<FintEvent[]>();
const [modal, setModal] = useState<ModalBody>(false, Event);
const [currentPage, setCurrentPage] = useState<number>(1);
const itemsPerPage = 15;
const itemsPerPage = 20;
const [searchQuery, setSearchQuery] = useState("");
const [searchVisible, setSearchVisible] = useState(false);
const sortedBadedOnTimeStamp = fintEvents.sort((a, b) => (a.requestEvent?.created || 0) - (b.requestEvent?.created || 0));
Expand Down

0 comments on commit 88bf2d1

Please sign in to comment.