From dc0285b41dbefb11c20a01d32995b95e7f8ef89f Mon Sep 17 00:00:00 2001 From: Nightkilller Date: Wed, 27 May 2026 15:20:13 +0530 Subject: [PATCH] fix(types): replace any types in dashboard profile page --- app/dashboard/profile/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/dashboard/profile/page.tsx b/app/dashboard/profile/page.tsx index 31afbef..6be259a 100644 --- a/app/dashboard/profile/page.tsx +++ b/app/dashboard/profile/page.tsx @@ -1,4 +1,5 @@ import { Metadata } from "next"; +import type { Project } from "@/modules/dashboard/types"; import { currentUser } from "@/modules/auth/actions"; import { getUserProfileStats } from "@/modules/profile/actions"; import KPIStats from "@/modules/profile/components/KPIStats"; @@ -128,9 +129,9 @@ export default async function ProfilePage() { )} - {stats.playgrounds.filter((p: any) => p.Starmark?.length > 0 && p.Starmark[0].isMarked).length > 0 ? ( + {stats.playgrounds.filter((p: Project) => p.Starmark?.length > 0 && p.Starmark[0].isMarked).length > 0 ? ( p.Starmark?.length > 0 && p.Starmark[0].isMarked)} + projects={stats.playgrounds.filter((p: Project) => p.Starmark?.length > 0 && p.Starmark[0].isMarked)} onDeleteProject={deleteProjectById} onUpdateProject={editProjectById} onDuplicateProject={duplicateProjectById}