From 084a7f9f49e6da524bbba769f5fa53cf951b7541 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 28 Sep 2025 02:02:57 +0000 Subject: [PATCH] Prettier format pending files --- client/pages/Dashboard.tsx | 87 +++++++++++++++++++++++++++++--------- 1 file changed, 68 insertions(+), 19 deletions(-) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index e00b3552..aaf20c3e 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -175,9 +175,7 @@ export default function Dashboard() { try { const { data, error } = await supabase .from("project_applications") - .select( - `*, projects!inner(id, title, user_id)` - ) + .select(`*, projects!inner(id, title, user_id)`) .eq("projects.user_id", user!.id) .order("created_at", { ascending: false }) .limit(10); @@ -583,7 +581,9 @@ export default function Dashboard() { Create a Post - Share updates, images, or videos + + Share updates, images, or videos + @@ -855,24 +855,49 @@ export default function Dashboard() {
- Your Recent Posts + + Your Recent Posts + Your latest activity
- +
{userPosts.length === 0 ? ( -
No posts yet. Share something above.
+
+ No posts yet. Share something above. +
) : ( userPosts.map((p: any) => { let text = ""; - try { const obj = JSON.parse(p.content||"{}"); text = obj.text || p.content; } catch { text = p.content; } + try { + const obj = JSON.parse(p.content || "{}"); + text = obj.text || p.content; + } catch { + text = p.content; + } return ( -
+
{p.title}
- {text &&
{text}
} -
{new Date(p.created_at).toLocaleString()}
+ {text && ( +
+ {text} +
+ )} +
+ {new Date(p.created_at).toLocaleString()} +
); }) @@ -977,25 +1002,49 @@ export default function Dashboard() {
- Project Applications - People who applied to your projects + + Project Applications + + + People who applied to your projects +
{applications.length === 0 ? ( -
No applications yet.
+
+ No applications yet. +
) : ( applications.map((a: any) => ( -
+
-
{a.applicant_name || a.applicant_email || "Applicant"}
-
Applied to: {a.projects?.title || a.project_title || "Project"}
+
+ {a.applicant_name || + a.applicant_email || + "Applicant"} +
+
+ Applied to:{" "} + {a.projects?.title || + a.project_title || + "Project"} +
+
+
+ {new Date(a.created_at).toLocaleDateString()}
-
{new Date(a.created_at).toLocaleDateString()}
- {a.message &&
{a.message}
} + {a.message && ( +
+ {a.message} +
+ )}
)) )}