Skip to content

Commit

Permalink
fix: shelter icon infos color and wrong sheltered people data
Browse files Browse the repository at this point in the history
  • Loading branch information
fagundesjg committed May 6, 2024
1 parent b16164d commit 2096543
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/components/CardAboutShelter/CardAboutShelter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ const CardAboutShelter = (props: ICardAboutShelter) => {
<div className="flex flex-col flex-wrap gap-3">
<InfoRow icon={<Home />} label={shelter.address} />
<InfoRow
icon={<UsersRound />}
label="Capacidade do abrigo:"
icon={<HandHeart />}
label="Pessoas abrigadas:"
value={
check(shelter.capacity)
? `${shelter.capacity} pessoas`
check(shelter.shelteredPeople)
? `${shelter.shelteredPeople} pessoas`
: 'Não informado'
}
/>
<InfoRow
icon={<HandHeart />}
label="Pessoas abrigadas:"
icon={<UsersRound />}
label="Capacidade do abrigo:"
value={
check(shelter.capacity)
? `${shelter.capacity} pessoas`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const InfoRow = React.forwardRef<HTMLDivElement, IInfoRowProps>(
{...rest}
>
{React.cloneElement(icon as any, {
className: 'min-w-5 min-h-5 w-5 h-5',
className: 'min-w-5 min-h-5 w-5 h-5 stroke-muted-foreground',
})}
<h1 className={cn('font-normal', value ? 'text-nowrap' : '')}>
{label}
Expand Down

0 comments on commit 2096543

Please sign in to comment.