refactor(top-estabelecimentos): atualiza layout e usa componente Progress

- Cria layout.tsx com PageDescription
- Substitui barras de progresso customizadas por Progress
- Remove label 'Período:' do filtro
- Ajusta espaçamento do filtro na página
This commit is contained in:
Felipe Coutinho
2026-01-20 15:21:52 +00:00
parent c185c7be42
commit 54ffd7f914
5 changed files with 39 additions and 30 deletions

View File

@@ -12,6 +12,7 @@ import {
import { getIconComponent } from "@/lib/utils/icons";
import { title_font } from "@/public/fonts/font_index";
import { RiPriceTag3Line } from "@remixicon/react";
import { Progress } from "../ui/progress";
type TopCategoriesProps = {
categories: TopEstabelecimentosData["topCategories"];
@@ -110,15 +111,7 @@ export function TopCategories({ categories }: TopCategoriesProps) {
{/* Progress bar */}
<div className="ml-12 mt-1.5">
<div className="h-1.5 bg-muted rounded-full overflow-hidden">
<div
className="h-full rounded-full"
style={{
width: `${percent}%`,
backgroundColor: color,
}}
/>
</div>
<Progress className="h-1.5" value={percent} />
</div>
</div>
);