add payment for SaleProprite ,add commsion,fixed error handling fiexd final things
All checks were successful
Build frontend / build (push) Successful in 1m46s

This commit is contained in:
hamzaobed7
2026-08-18 01:24:18 +03:00
parent 5592d9fbd2
commit 3472dc1175
10 changed files with 793 additions and 1070 deletions

View File

@ -692,7 +692,7 @@ export default function PropertiesPage() {
const filteredProperties = properties
// العقارات يلي 0 ما تنعرض
.filter((p) => p.purpose === purposeTab)
.filter((p) => p.purpose === "rent" || p.status === 1)
// .filter((p) => p.purpose === "rent" || p.status === 1)
.filter((property) => {
if (filters.search && !property.title.includes(filters.search) && !property.description.includes(filters.search)) {
return false;
@ -788,9 +788,9 @@ export default function PropertiesPage() {
<div className={viewMode === "grid" ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" : "space-y-4"}>
{/* شرط مشان ينعرض او لا */}
{filteredProperties.map((property) =>
property.purpose === "rent" || property.status === 1 ? (
// property.purpose === "rent" || property.status === 1 ? (
<PropertyCard key={property.id} property={property} viewMode={viewMode} type={property.purpose} onLoginRequired={() => setShowLoginDialog(true)} />
) : null,
// ) : null,
)}
</div>