Skip to content

Commit 311849f

Browse files
jandersonscmarcodmc
authored andcommitted
feat: ajuste de textos de voluntários e doações (SOS-RS#129)
1 parent 29e8122 commit 311849f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,34 @@ const ShelterListItem = (props: IShelterListItemProps) => {
8686
Atualizado em {updatedAtDate}
8787
</small>
8888
</div>
89+
<h6 className={cn('font-semibold text-md', availabilityClassName)}>
90+
{availability}
91+
</h6>
92+
<h6 className="text-muted-foreground text-sm md:text-lg font-medium">
93+
{data.address}
94+
</h6>
95+
{data.shelterSupplies.length > 0 && (
96+
<>
97+
<ShelterSupplyCategoryRow
98+
title="Necessita de voluntários:"
99+
tags={tags.NeedVolunteers.map(getChipProps)}
100+
/>
101+
<ShelterSupplyCategoryRow
102+
title="Necessita urgente de doações de:"
103+
tags={tags.NeedDonations.map(getChipProps)}
104+
/>
105+
<ShelterSupplyCategoryRow
106+
title="Sobrando para doações:"
107+
tags={tags.RemainingSupplies.map(getChipProps)}
108+
/>
109+
</>
110+
)}
111+
{data.updatedAt && (
112+
<small className="text-sm md:text-md font-light text-muted-foreground mt-2">
113+
Atualizado em {format(data.updatedAt, 'dd/MM/yyyy HH:mm')}
114+
</small>
115+
)}
116+
</div>
89117
</Link>
90118
);
91119
};

0 commit comments

Comments
 (0)