From caf694d443889ecaf3a143f47abb74fa47151040 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Mon, 6 May 2024 17:07:05 -0700 Subject: [PATCH] initial commit --- frontend/src/app/search/SearchForm.tsx | 2 -- frontend/src/components/search/SearchPagination.tsx | 3 --- frontend/tests/components/search/SearchPagination.test.tsx | 6 ------ 3 files changed, 11 deletions(-) diff --git a/frontend/src/app/search/SearchForm.tsx b/frontend/src/app/search/SearchForm.tsx index 70f8172bd..1f23a7971 100644 --- a/frontend/src/app/search/SearchForm.tsx +++ b/frontend/src/app/search/SearchForm.tsx @@ -89,7 +89,6 @@ export function SearchForm({
{searchResults?.data.length >= 1 ? ( {searchResults?.data?.length >= 1 ? ( diff --git a/frontend/src/components/search/SearchPagination.tsx b/frontend/src/components/search/SearchPagination.tsx index 29dd6389c..91a50288e 100644 --- a/frontend/src/components/search/SearchPagination.tsx +++ b/frontend/src/components/search/SearchPagination.tsx @@ -4,7 +4,6 @@ import { Pagination } from "@trussworks/react-uswds"; interface SearchPaginationProps { showHiddenInput?: boolean; // Only one of the two SearchPagination should have this set - totalPages: number; page: number; handlePageChange: (handlePage: number) => void; // managed in useSearchFormState paginationRef?: React.RefObject; // managed in useSearchFormState @@ -14,7 +13,6 @@ const MAX_SLOTS = 5; export default function SearchPagination({ showHiddenInput, - totalPages, page, handlePageChange, paginationRef, @@ -33,7 +31,6 @@ export default function SearchPagination({ )} handlePageChange(page + 1)} diff --git a/frontend/tests/components/search/SearchPagination.test.tsx b/frontend/tests/components/search/SearchPagination.test.tsx index 49ed5e00b..c742575c6 100644 --- a/frontend/tests/components/search/SearchPagination.test.tsx +++ b/frontend/tests/components/search/SearchPagination.test.tsx @@ -8,7 +8,6 @@ import { axe } from "jest-axe"; describe("SearchPagination", () => { const mockHandlePageChange = jest.fn(); - const totalPages = 10; const page = 1; beforeEach(() => { @@ -19,7 +18,6 @@ describe("SearchPagination", () => { const { container } = render( , @@ -38,7 +36,6 @@ describe("SearchPagination", () => { render( , @@ -52,7 +49,6 @@ describe("SearchPagination", () => { render( , @@ -64,7 +60,6 @@ describe("SearchPagination", () => { render( , @@ -77,7 +72,6 @@ describe("SearchPagination", () => { render( ,