Skip to content

Commit

Permalink
refactor: Use Pagination component in react-uswds (#897)
Browse files Browse the repository at this point in the history
* Import Pagination component from ReactUSWDS

* Change Math operation to fix blank page bug

* Remove local Pagination component

* fix: update count query to filter by status and category

* Revert and update Pagination story to use react-uswds component

Co-authored-by: John Gedeon <john@truss.works>
  • Loading branch information
jcbcapps and gidjin authored Jan 17, 2023
1 parent 34fefac commit a325cda
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 466 deletions.
3 changes: 1 addition & 2 deletions src/components/ArticleList/ArticleList.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react'

import { Pagination } from '@trussworks/react-uswds'
import styles from './ArticleList.module.scss'

import type { ArticleListItemRecord } from 'types'
import { ArticleListItem } from 'components/ArticleListItem/ArticleListItem'
import Pagination from 'components/Pagination/Pagination'

type ArticleListProps = {
articles: ArticleListItemRecord[]
Expand Down
281 changes: 0 additions & 281 deletions src/components/Pagination/Pagination.test.tsx

This file was deleted.

Loading

0 comments on commit a325cda

Please sign in to comment.