From b2bc8766e19a7c818be039c28d66c68f3dccde7b Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Sat, 9 Nov 2024 16:46:13 +0700 Subject: [PATCH] feat: add edit button for project navigation on dashboard --- src/app/dashboard/page.tsx | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 2742e29..d55711d 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -13,6 +13,7 @@ import { getInvestmentByProjectsIds } from "@/lib/data/investmentQuery"; import { useQuery } from "@supabase-cache-helpers/postgrest-react-query"; import { overAllGraphData, Deal, fourYearGraphData, dayOftheWeekData } from "../portfolio/[uid]/query"; import CountUp from "react-countup"; +import { Button } from "@/components/ui/button"; export default function Dashboard() { const supabase = createSupabaseClient(); @@ -228,31 +229,20 @@ export default function Dashboard() {

*/} - {/* - - - Active Now - - { + window.location.href = `/project/${project.id}/edit`; + }} + className="h-full bg-emerald-500 hover:bg-emerald-800 font-bold text-xl" > - - - - -
+573
-

- +201 since last hour -

-
-
*/} + Edit Project + + + +