feat: add currency formatting for monthly rent display in SchedaAnnuncio
This commit is contained in:
parent
ac75113c1e
commit
da21fb8f86
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ import { filteredCaratteristiche } from "~/hooks/schedaAnnuncioUtils";
|
|||
import { it } from "~/i18n/it";
|
||||
import { handleConsegna } from "~/lib/annuncio_details";
|
||||
import { replaceWithBr } from "~/lib/newlineToBr";
|
||||
import { formatCurrency } from "~/lib/utils";
|
||||
import type { Annunci } from "~/schemas/public/Annunci";
|
||||
import { IconMatrix } from "./IconComponents";
|
||||
import { LogoSvg } from "./svgs";
|
||||
|
|
@ -143,7 +144,7 @@ function SchedaAnnuncio({ data }: { data: Annunci }) {
|
|||
<div className="bg-gray-50 p-3 rounded">
|
||||
<p className="font-medium text-primary">Canone Mensile</p>
|
||||
<p className="text-xl font-bold">
|
||||
€ {formatCurrency(data.prezzo / 100)}
|
||||
{formatCurrency(data.prezzo / 100)}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue