diff --git a/app/(authenticated)/dashboard/_components/transactions-pie-chart.tsx b/app/(authenticated)/dashboard/_components/transactions-pie-chart.tsx index f220058..690e828 100644 --- a/app/(authenticated)/dashboard/_components/transactions-pie-chart.tsx +++ b/app/(authenticated)/dashboard/_components/transactions-pie-chart.tsx @@ -62,7 +62,7 @@ const TransactionsPieChart = ({ ]; return ( - + { redirect("/login"); } - // Validação do mês const monthNumber = Number(month); const isValidMonth = monthNumber >= 1 && monthNumber <= 12; @@ -31,22 +31,26 @@ const Home = async ({ searchParams: { month = "1" } }: HomeProps) => { const dashboard = await GetDashboard(monthNumber); return ( -
-
-
-
-

Dashboard

- +
+
+ +
+
+

Dashboard

+ +
+ + + +
+ + +
- +
-
- - -
-
diff --git a/app/(authenticated)/layout.tsx b/app/(authenticated)/layout.tsx index ec8c04f..fb445f3 100644 --- a/app/(authenticated)/layout.tsx +++ b/app/(authenticated)/layout.tsx @@ -17,7 +17,7 @@ export default async function AuthenticatedLayout({ return ( <>
- {children} +
{children}
); } diff --git a/app/(authenticated)/transactions/page.tsx b/app/(authenticated)/transactions/page.tsx index 31bb76d..20f0769 100644 --- a/app/(authenticated)/transactions/page.tsx +++ b/app/(authenticated)/transactions/page.tsx @@ -5,6 +5,7 @@ import { transactionsColumns } from "./_columns"; import AddTransactionButton from "@/app/_components/add-transaction-button"; import { auth } from "@clerk/nextjs/server"; import { redirect } from "next/navigation"; +import { ScrollArea } from "@/app/_components/ui/scroll-area"; const TransactionsPage = async () => { const { userId } = await auth(); @@ -28,12 +29,14 @@ const TransactionsPage = async () => { }); return ( -
+

Transações

- + + +
); }; diff --git a/app/layout.tsx b/app/layout.tsx index 7199c03..fe7fef1 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -20,7 +20,9 @@ export default function RootLayout({ return ( - + {children}