fixed my propries page and fixed the sidebar again mouaz is the best in the west
All checks were successful
Build frontend / build (push) Successful in 44s
All checks were successful
Build frontend / build (push) Successful in 44s
This commit is contained in:
@ -141,6 +141,7 @@ function mapApiDetail(item) {
|
||||
proximity,
|
||||
roomDetails,
|
||||
details,
|
||||
bookedCount: details.bookedCount || 0,
|
||||
deposit: item.deposit || 0,
|
||||
currencyId: item.currencyId,
|
||||
isSmokeAllow: item.isSmokeAllow,
|
||||
@ -464,6 +465,13 @@ export default function PropertyDetailsPage() {
|
||||
<div className="text-[10px] text-gray-500">التقييم</div>
|
||||
</div>
|
||||
)}
|
||||
{property.bookedCount > 0 && (
|
||||
<div className="bg-gray-50 rounded-lg p-2 text-center">
|
||||
<Calendar className="w-4 h-4 text-amber-500 mx-auto mb-0.5" />
|
||||
<div className="font-bold text-gray-900 text-sm">{property.bookedCount}</div>
|
||||
<div className="text-[10px] text-gray-500">حجوزات</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Description */}
|
||||
@ -496,7 +504,7 @@ export default function PropertyDetailsPage() {
|
||||
) : (
|
||||
Object.entries(property.services).map(([key, val]) => {
|
||||
if (!val) return null;
|
||||
const detail = typeof val === 'object' && val.detail ? val.detail : null;
|
||||
const detail = typeof val === 'object' && val.detail ? val.detail : (typeof val === 'string' ? val : null);
|
||||
return (
|
||||
<span key={key} className="px-3 py-1 bg-green-50 text-green-700 rounded-full text-sm border border-green-200 flex items-center gap-1">
|
||||
{serviceLabels[key] || key}
|
||||
|
||||
Reference in New Issue
Block a user