1
1
"use client" ;
2
2
3
3
import Fuse from "fuse.js" ;
4
+
4
5
import { useSearchParams } from "next/navigation" ;
5
6
import { useMemo , useState } from "react" ;
6
7
import { GlobeIcon , SearchIcon } from "lucide-react" ;
@@ -9,6 +10,7 @@ import Link from "next/link";
9
10
import Image from "next/image" ;
10
11
import PlaceholderImg from "@/public/_static/placeholder.png" ;
11
12
import PapermarkPImg from "@/public/_static/papermark-p.svg" ;
13
+ import { Button } from "@/components/ui/button" ;
12
14
13
15
const searchOptions = {
14
16
threshold : 0.3 ,
@@ -182,13 +184,22 @@ export default function Dashboard({ data }: any) {
182
184
>
183
185
Sector
184
186
</ th >
187
+ < th
188
+ scope = "col"
189
+ className = "px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
190
+ >
191
+ Fund details
192
+ </ th >
185
193
</ tr >
186
194
</ thead >
195
+
187
196
< tbody className = "md:divide-y divide-gray-200 md:bg-white grid grid-cols-1 gap-3 sm:grid-cols-2 md:table-row-group" >
188
197
{ paginatedInvestors . map ( ( investor : any ) => (
198
+ // Assuming you have a slug or some unique identifier for each investor
199
+
189
200
< tr
190
201
key = { investor . id }
191
- className = "group grid grid-cols-3 gap-1 md:table-row bg-white rounded-lg md:rounded-none md:bg-transparent shadow md:shadow-none border border-gray-200 md:border-x-0 py-3 px-2 md:p-0"
202
+ className = "hover:bg-gray-100 group grid grid-cols-3 gap-1 md:table-row bg-white rounded-lg md:rounded-none md:bg-transparent shadow md:shadow-none border border-gray-200 md:border-x-0 py-3 px-2 md:p-0"
192
203
>
193
204
< td className = "col-span-3 whitespace-nowrap pl-3 md:py-2 md:pl-6 text-sm sm:pl-6 md:h-24" >
194
205
< div className = "flex items-center space-x-2" >
@@ -255,6 +266,15 @@ export default function Dashboard({ data }: any) {
255
266
< td className = "col-span-3 md:max-w-xs px-3 md:px-2 md:py-3 text-sm text-gray-500 truncate w-40" >
256
267
{ investor . sector ? investor . sector : "Unknown" }
257
268
</ td >
269
+ < td className = "col-span-3 md:max-w-xs px-3 md:px-2 md:py-3 text-sm text-gray-500 truncate w-40" >
270
+ < a
271
+ href = { `/investors/${ encodeURIComponent ( investor . slug ) } ` }
272
+ >
273
+ < Button className = "rounded-3xl bg-gray-200 text-xs text-gray-800 hover:bg-[#fb7a00]]" >
274
+ Learn more
275
+ </ Button >
276
+ </ a >
277
+ </ td >
258
278
</ tr >
259
279
) ) }
260
280
</ tbody >
0 commit comments