From 81cb94686c09a041a5b4356d6f58c557b47f7a60 Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Thu, 7 Nov 2024 17:09:03 +0700 Subject: [PATCH] refactor: remove hardcoded monthly data from dashboard component --- src/app/dashboard/page.tsx | 51 -------------------------------------- 1 file changed, 51 deletions(-) diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index da7870e..85e5b2a 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -13,57 +13,6 @@ import { getInvestmentByProjectsIds } from "@/lib/data/investmentQuery"; import { useQuery } from "@supabase-cache-helpers/postgrest-react-query"; import { getLatestInvestment, overAllGraphData, Deal } from "../portfolio/[uid]/query"; -const data = [ - { - name: "Jan", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Feb", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Mar", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Apr", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "May", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Jun", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Jul", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Aug", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Sep", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Oct", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Nov", - value: Math.floor(Math.random() * 5000) + 1000, - }, - { - name: "Dec", - value: Math.floor(Math.random() * 5000) + 1000, - }, -]; - export default function Dashboard() { let supabase = createSupabaseClient(); const userId = useSession().session?.user.id;