diff --git a/app/(dashboard)/top-estabelecimentos/layout.tsx b/app/(dashboard)/top-estabelecimentos/layout.tsx new file mode 100644 index 0000000..c6d619e --- /dev/null +++ b/app/(dashboard)/top-estabelecimentos/layout.tsx @@ -0,0 +1,23 @@ +import PageDescription from "@/components/page-description"; +import { RiStore2Line } from "@remixicon/react"; + +export const metadata = { + title: "Top Estabelecimentos | Opensheets", +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( +
+ } + title="Top Estabelecimentos" + subtitle="Análise dos locais onde você mais compra e gasta" + /> + {children} +
+ ); +} diff --git a/app/(dashboard)/top-estabelecimentos/page.tsx b/app/(dashboard)/top-estabelecimentos/page.tsx index 0aa2651..ecb8628 100644 --- a/app/(dashboard)/top-estabelecimentos/page.tsx +++ b/app/(dashboard)/top-estabelecimentos/page.tsx @@ -3,6 +3,7 @@ import { HighlightsCards } from "@/components/top-estabelecimentos/highlights-ca import { PeriodFilterButtons } from "@/components/top-estabelecimentos/period-filter"; import { SummaryCards } from "@/components/top-estabelecimentos/summary-cards"; import { TopCategories } from "@/components/top-estabelecimentos/top-categories"; +import { Card } from "@/components/ui/card"; import { getUser } from "@/lib/auth/server"; import { fetchTopEstabelecimentosData, @@ -50,18 +51,13 @@ export default async function TopEstabelecimentosPage({ ); return ( -
-
-
-

- Top Estabelecimentos -

-

- Análise dos locais onde você mais compra • {data.periodLabel} -

-
+
+ + + Selecione o período + -
+ diff --git a/components/top-estabelecimentos/establishments-list.tsx b/components/top-estabelecimentos/establishments-list.tsx index a2fd7a9..856ea25 100644 --- a/components/top-estabelecimentos/establishments-list.tsx +++ b/components/top-estabelecimentos/establishments-list.tsx @@ -1,12 +1,13 @@ "use client"; +import MoneyValues from "@/components/money-values"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; -import MoneyValues from "@/components/money-values"; import { WidgetEmptyState } from "@/components/widget-empty-state"; import type { TopEstabelecimentosData } from "@/lib/top-estabelecimentos/fetch-data"; import { title_font } from "@/public/fonts/font_index"; import { RiStore2Line } from "@remixicon/react"; +import { Progress } from "../ui/progress"; type EstablishmentsListProps = { establishments: TopEstabelecimentosData["establishments"]; @@ -119,14 +120,10 @@ export function EstablishmentsList({ {/* Progress bar */}
-
-
-
+
); diff --git a/components/top-estabelecimentos/period-filter.tsx b/components/top-estabelecimentos/period-filter.tsx index 4c8f93d..54fb5f7 100644 --- a/components/top-estabelecimentos/period-filter.tsx +++ b/components/top-estabelecimentos/period-filter.tsx @@ -27,7 +27,7 @@ export function PeriodFilterButtons({ currentFilter }: PeriodFilterProps) { return (
- Período: +
{filterOptions.map((option) => (
);