Skip to content

Commit

Permalink
refactor: remove hardcoded monthly data from dashboard component
Browse files Browse the repository at this point in the history
  • Loading branch information
GGWPXXXX committed Nov 7, 2024
1 parent 4c42b5e commit 81cb946
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81cb946

Please sign in to comment.