File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
src/pages/Home/components/ShelterListItem Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,34 @@ const ShelterListItem = (props: IShelterListItemProps) => {
86
86
Atualizado em { updatedAtDate }
87
87
</ small >
88
88
</ 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 >
89
117
< / L i n k >
90
118
) ;
91
119
} ;
You can’t perform that action at this time.
0 commit comments