Skip to content

Commit 4b17474

Browse files
committed
convert the entries to links
1 parent cf9505e commit 4b17474

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

app/[locale]/(user)/components/Content.tsx

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,23 @@ export const Content = () => {
4949
{
5050
label: 'Datasets',
5151
count: Stats?.data?.stats?.totalPublishedDatasets,
52+
link: '/datasets',
5253
},
5354
{
5455
label: 'Use Cases',
5556
count: Stats?.data?.stats?.totalPublishedUsecases,
57+
link: '/usecases',
5658
},
5759

5860
{
5961
label: 'Publishers',
6062
count: Stats?.data?.stats?.totalPublishers,
63+
link: '/publishers',
6164
},
62-
{
63-
label: 'Users',
64-
count: Stats?.data?.stats?.totalUsers,
65-
},
65+
// {
66+
// label: 'Users',
67+
// count: Stats?.data?.stats?.totalUsers,
68+
// },
6669
];
6770

6871
const Sectors = [
@@ -73,6 +76,7 @@ export const Content = () => {
7376
'Law And Justice',
7477
'Urban Development',
7578
];
79+
7680
return (
7781
<main className="bg-primaryBlue py-6 md:px-8 md:py-10 lg:py-20">
7882
<div className="container flex items-center justify-around gap-20 px-10 md:px-12 lg:px-8 ">
@@ -90,17 +94,22 @@ export const Content = () => {
9094
) : (
9195
<div className="flex flex-wrap items-center gap-4 md:gap-0 lg:gap-0 ">
9296
{Metrics.map((item, index) => (
93-
<div
94-
key={index}
95-
className="flex flex-col border-x-[1px] border-solid border-tertiaryAccent px-4"
96-
>
97-
<Text variant="heading3xl" className=" text-secondaryOrange">
98-
{item.count}
99-
</Text>
100-
<Text color="onBgDefault" className=" w-20 ">
101-
{item.label}
102-
</Text>
103-
</div>
97+
<Link key={`${item.label}_${index}`} href={item.link}>
98+
<div
99+
key={index}
100+
className="flex flex-col border-x-[1px] border-solid border-tertiaryAccent px-4"
101+
>
102+
<Text
103+
variant="heading3xl"
104+
className=" text-secondaryOrange"
105+
>
106+
{item.count}
107+
</Text>
108+
<Text color="onBgDefault" className=" w-20 ">
109+
{item.label}
110+
</Text>
111+
</div>
112+
</Link>
104113
))}
105114
</div>
106115
)}

0 commit comments

Comments
 (0)