From 2b7f3409576b7a541c8218e0354e13e6f97757eb Mon Sep 17 00:00:00 2001 From: Naytitorn Chaovirachot Date: Wed, 6 Nov 2024 15:19:53 +0700 Subject: [PATCH] fix: link github on homepage and fix project search not clickable --- .../(investment)/deals/[id]/displayImage.tsx | 2 +- src/app/find/page.tsx | 33 +++++++++++-------- src/app/loading.tsx | 6 +--- src/app/page.tsx | 14 ++++---- 4 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/app/(investment)/deals/[id]/displayImage.tsx b/src/app/(investment)/deals/[id]/displayImage.tsx index 7e48f8b..0e28f72 100644 --- a/src/app/(investment)/deals/[id]/displayImage.tsx +++ b/src/app/(investment)/deals/[id]/displayImage.tsx @@ -10,7 +10,7 @@ import { } from "@/components/ui/dialog"; import Image from "next/image"; import { StaticImport } from "next/dist/shared/lib/get-img-props"; -import { it } from "node:test"; + const ImageModal = ({ item, width }: { item: { src: string | StaticImport; alt: string;} }, number ) => { return ( diff --git a/src/app/find/page.tsx b/src/app/find/page.tsx index 729609c..a159ab9 100644 --- a/src/app/find/page.tsx +++ b/src/app/find/page.tsx @@ -8,6 +8,7 @@ import { ProjectCard } from "@/components/projectCard"; import { Separator } from "@/components/ui/separator"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { getBusinessAndProject } from "@/lib/data/businessQuery"; +import Link from "next/link"; function FindContent() { const searchParams = useSearchParams(); @@ -43,7 +44,11 @@ function FindContent() {
  • - {business.business_name} + + {/* */} + {business.business_name} + {/* */} + Joined Date: {new Date(business.joined_date).toLocaleDateString()} @@ -51,18 +56,20 @@ function FindContent() { {business?.projects && business.projects.length > 0 ? ( business.projects.map((project) => ( - String(tag.tag_value)) || []} - imageUri={project.card_image_url} - /> + + String(tag.tag_value)) || []} + imageUri={project.card_image_url} + /> + )) ) : (

    No Projects

    diff --git a/src/app/loading.tsx b/src/app/loading.tsx index 0f8be55..c38f7da 100644 --- a/src/app/loading.tsx +++ b/src/app/loading.tsx @@ -1,8 +1,4 @@ import { Loader } from "@/components/loading/loader"; export default function Loading() { - return ( -
    - -
    - ); + return ; } diff --git a/src/app/page.tsx b/src/app/page.tsx index 19cc657..184e9b7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -121,14 +121,12 @@ export default async function Home() { Follow Us
    - - + + +