File tree Expand file tree Collapse file tree
app/[locale]/(user)/datasets Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ import {
1515
1616import { cn } from '@/lib/utils' ;
1717import BreadCrumbs from '@/components/BreadCrumbs' ;
18- import DatasetCards from './components/DatasetCards' ;
18+ import GraphqlPagination from '../../dashboard/components/GraphqlPagination/graphqlPagination' ;
19+ import Card from './components/Card' ;
1920import Filter from './components/FIlter/Filter' ;
2021import Styles from './dataset.module.scss' ;
2122
@@ -313,14 +314,17 @@ const DatasetsListing = () => {
313314
314315 < div className = "flex flex-col gap-6" >
315316 { facets && datasetDetails ?. length > 0 && (
316- < DatasetCards
317- data = { datasetDetails }
318- totalCount = { count }
317+ < GraphqlPagination
318+ totalRows = { count }
319319 pageSize = { queryParams . pageSize }
320320 currentPage = { queryParams . currentPage }
321321 onPageChange = { handlePageChange }
322322 onPageSizeChange = { handlePageSizeChange }
323- />
323+ >
324+ { datasetDetails . map ( ( item : any , index : any ) => (
325+ < Card key = { index } data = { item } />
326+ ) ) }
327+ </ GraphqlPagination >
324328 ) }
325329 </ div >
326330 </ div >
You can’t perform that action at this time.
0 commit comments