Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/CardAboutShelter/CardAboutShelter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
PawPrint,
Landmark,
Smartphone,
MapPin,
Building,
MapPinned,
} from 'lucide-react';
Expand All @@ -27,6 +28,7 @@ const CardAboutShelter = (props: ICardAboutShelter) => {
<div className="text-[#646870] font-medium">Sobre o abrigo</div>
<div className="flex flex-col flex-wrap gap-3">
<InfoRow icon={<Home />} label={formatAddress} />
<InfoRow icon={<MapPin />} label={shelter?.location ? 'Localização: ' : 'Localização no mapa indisponível'} value={shelter?.location}/>
{Boolean(shelter.city) && (
<InfoRow icon={<Building />} label="Cidade:" value={shelter.city} />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const InfoRow = React.forwardRef<HTMLDivElement, IInfoRowProps>(
target="_blank"
className="text-blue-500 break-all cursor-pointer hover:underline"
>
{value}
Ver no Google Maps
</a>
) : (
<h1 className="font-semibold">{value}</h1>
Expand Down