11'use client' ;
22
3- import React , { useEffect , useReducer , useState } from 'react' ;
4- import Link from 'next/link' ;
5- import { useRouter } from 'next/navigation' ;
63import { fetchDatasets } from '@/fetch' ;
4+ import { useRouter } from 'next/navigation' ;
75import {
86 Button ,
97 ButtonGroup ,
@@ -17,10 +15,11 @@ import {
1715 Text ,
1816 Tray ,
1917} from 'opub-ui' ;
18+ import React , { useEffect , useReducer , useState } from 'react' ;
2019
21- import { cn } from '@/lib/utils' ;
2220import BreadCrumbs from '@/components/BreadCrumbs' ;
2321import { Icons } from '@/components/icons' ;
22+ import { cn } from '@/lib/utils' ;
2423import GraphqlPagination from '../../dashboard/components/GraphqlPagination/graphqlPagination' ;
2524import Filter from './components/FIlter/Filter' ;
2625import Styles from './dataset.module.scss' ;
@@ -243,7 +242,7 @@ const DatasetsListing = () => {
243242 console . log ( datasetDetails ) ;
244243
245244 return (
246- < main className = " bg-greyExtralight" >
245+ < main >
247246 < BreadCrumbs
248247 data = { [
249248 { href : '/' , label : 'Home' } ,
@@ -408,7 +407,6 @@ const DatasetsListing = () => {
408407 >
409408 { datasetDetails . map ( ( item : any , index : any ) => {
410409 const commonProps = {
411- key : `${ item . id } -${ view } ` ,
412410 title : item . title ,
413411 description : item . description ,
414412 metadataContent : [
@@ -443,15 +441,15 @@ const DatasetsListing = () => {
443441 } ;
444442
445443 return (
446- < Link href = { `/datasets/ ${ item . id } ` } key = { item . id } >
447- < Card
448- { ... commonProps }
449- variation = {
450- view === 'expanded' ? 'expanded' : 'collapsed'
451- }
452- iconColor = "warning"
453- />
454- </ Link >
444+ < Card
445+ { ... commonProps }
446+ key = { item . id }
447+ variation = {
448+ view === 'expanded' ? 'expanded' : 'collapsed'
449+ }
450+ iconColor = "warning"
451+ href = { `/datasets/ ${ item . id } ` }
452+ / >
455453 ) ;
456454 } ) }
457455 </ GraphqlPagination >
0 commit comments