Skip to content

Commit cfd6524

Browse files
committed
add link and remove color
1 parent 23cac72 commit cfd6524

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

app/[locale]/(user)/datasets/page.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
'use client';
22

3-
import React, { useEffect, useReducer, useState } from 'react';
4-
import Link from 'next/link';
5-
import { useRouter } from 'next/navigation';
63
import { fetchDatasets } from '@/fetch';
4+
import { useRouter } from 'next/navigation';
75
import {
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';
2220
import BreadCrumbs from '@/components/BreadCrumbs';
2321
import { Icons } from '@/components/icons';
22+
import { cn } from '@/lib/utils';
2423
import GraphqlPagination from '../../dashboard/components/GraphqlPagination/graphqlPagination';
2524
import Filter from './components/FIlter/Filter';
2625
import 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

Comments
 (0)