From aeca9ed2d80d7cf7aaf88f34e242776114973aed Mon Sep 17 00:00:00 2001 From: Sosokker Date: Thu, 7 Nov 2024 03:29:18 +0700 Subject: [PATCH] chore: eslint fix --- src/app/(user)/profile/[uid]/BusinessProfile.tsx | 4 ++-- src/app/(user)/profile/[uid]/ProjectProfile.tsx | 4 ++-- src/app/business/apply/page.tsx | 2 +- src/app/dashboard/page.tsx | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/app/(user)/profile/[uid]/BusinessProfile.tsx b/src/app/(user)/profile/[uid]/BusinessProfile.tsx index 8f0a78e..74d20f8 100644 --- a/src/app/(user)/profile/[uid]/BusinessProfile.tsx +++ b/src/app/(user)/profile/[uid]/BusinessProfile.tsx @@ -13,7 +13,7 @@ export const BusinessProfile = async ({ userId }: { userId: string }) => { Error Loading Data -

Can't load business data

+

Can't load business data

); @@ -26,7 +26,7 @@ export const BusinessProfile = async ({ userId }: { userId: string }) => { No Business Found -

This business account doesn't have businesses

+

This business account doesn't have businesses

); diff --git a/src/app/(user)/profile/[uid]/ProjectProfile.tsx b/src/app/(user)/profile/[uid]/ProjectProfile.tsx index 3f6067d..b2da0d5 100644 --- a/src/app/(user)/profile/[uid]/ProjectProfile.tsx +++ b/src/app/(user)/profile/[uid]/ProjectProfile.tsx @@ -16,7 +16,7 @@ export const ProjectProfileSection = async ({ userId }: { userId: string }) => { Error Loading Data -

Can't load business data

+

Can't load business data

); @@ -29,7 +29,7 @@ export const ProjectProfileSection = async ({ userId }: { userId: string }) => { No Project Found -

This business doesn't have any projects

+

This business doesn't have any projects

); diff --git a/src/app/business/apply/page.tsx b/src/app/business/apply/page.tsx index b425e16..1025b45 100644 --- a/src/app/business/apply/page.tsx +++ b/src/app/business/apply/page.tsx @@ -48,7 +48,7 @@ export default function ApplyBusiness() { } } - const { data, error } = await supabase + const { error } = await supabase .from("business_application") .insert([ { diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 2224f29..78f14b9 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -70,7 +70,6 @@ export default function Dashboard() { >([]); const [isSuccess, setIsSuccess] = useState(false); const [graphType, setGraphType] = useState("line"); - const [currentTab, setCurrentTab] = useState(); const dealList = useDealList(); const totalDealAmount = dealList?.reduce((sum, deal) => sum + deal.deal_amount, 0) || 0; useEffect(() => { @@ -120,7 +119,9 @@ export default function Dashboard() { {projects.map((project) => ( - {project.project_name} + + {project.project_name} + ))}