From 7a0b03b67f3d70b75a6fe6002f5716c9af3929b8 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 10 Nov 2024 21:13:17 +0100 Subject: [PATCH] Rename summary component and move it to the dashboard --- app/dashboard/expenses/page.tsx | 2 -- app/dashboard/page.tsx | 6 +++++- .../{expenses/summary.tsx => dashboard/global-summary.tsx} | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) rename app/ui/{expenses/summary.tsx => dashboard/global-summary.tsx} (97%) diff --git a/app/dashboard/expenses/page.tsx b/app/dashboard/expenses/page.tsx index 16edef2..8b24064 100644 --- a/app/dashboard/expenses/page.tsx +++ b/app/dashboard/expenses/page.tsx @@ -1,7 +1,6 @@ /* Copyright (C) 2024 Manuel Bustillo*/ import { lusitana } from '@/app/ui/fonts'; -import ExpenseSummary from '@/app/ui/expenses/summary'; import ExpensesTable from '@/app/ui/expenses/table'; export default function Page () { @@ -10,7 +9,6 @@ export default function Page () {

Expenses

Summary

-
diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 643e65f..51c96c1 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -1,5 +1,9 @@ /* Copyright (C) 2024 Manuel Bustillo*/ +import GlobalSummary from '@/app/ui/dashboard/global-summary'; + export default function Page() { - return

Dashboard Page

; + return( + + ); } \ No newline at end of file diff --git a/app/ui/expenses/summary.tsx b/app/ui/dashboard/global-summary.tsx similarity index 97% rename from app/ui/expenses/summary.tsx rename to app/ui/dashboard/global-summary.tsx index d838c4b..9b00359 100644 --- a/app/ui/expenses/summary.tsx +++ b/app/ui/dashboard/global-summary.tsx @@ -2,7 +2,7 @@ import { MainCard, SecondaryCard } from '../components/dashboard-cards'; -export default async function ExpenseSummary() { +export default async function GlobalSummary() { return (