Skip to content

Commit 4b869f5

Browse files
authored
feat: Correção do título com/sem filtros #247 (#270)
close: #247
2 parents b58d437 + 8bc5f61 commit 4b869f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/Home/components/ShelterListView/ShelterListView.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ const ShelterListView = React.forwardRef<HTMLDivElement, IShelterListViewProps>(
3636
return (
3737
<div className={cn(className, 'flex flex-col gap-2')}>
3838
<h1 className="text-[#2f2f2f] font-semibold text-2xl">
39-
Abrigos disponíveis ({count})
39+
{searchParams.toString()
40+
? `Abrigos encontrados (${count})`
41+
: `Total de abrigos (${count})`
42+
}
4043
</h1>
4144
<Alert
4245
description="Você pode consultar a lista de abrigos disponíveis. Ver e editar os itens que necessitam de doações."

0 commit comments

Comments
 (0)