Skip to content

Commit c74c4a9

Browse files
fagundesjgmarcodmc
authored andcommitted
hotfix: shelter list item broken div tag
1 parent 311849f commit c74c4a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pages/Home/components/ShelterListItem/ShelterListItem.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ const ShelterListItem = (props: IShelterListItemProps) => {
4040
};
4141
}, []);
4242

43-
const updatedAtDate = data.updatedAt ? format(data.updatedAt, 'dd/MM/yyyy HH:mm') : "(sem informação)";
43+
const updatedAtDate = data.updatedAt
44+
? format(data.updatedAt, 'dd/MM/yyyy HH:mm')
45+
: '(sem informação)';
4446

4547
return (
4648
<Link to={`/abrigo/${data.id}`} target="_blank">
@@ -83,7 +85,7 @@ const ShelterListItem = (props: IShelterListItemProps) => {
8385
</>
8486
)}
8587
<small className="text-sm md:text-md font-light text-muted-foreground mt-2">
86-
Atualizado em {updatedAtDate}
88+
Atualizado em {updatedAtDate}
8789
</small>
8890
</div>
8991
<h6 className={cn('font-semibold text-md', availabilityClassName)}>
@@ -113,7 +115,6 @@ const ShelterListItem = (props: IShelterListItemProps) => {
113115
Atualizado em {format(data.updatedAt, 'dd/MM/yyyy HH:mm')}
114116
</small>
115117
)}
116-
</div>
117118
</Link>
118119
);
119120
};

0 commit comments

Comments
 (0)