add payment for SaleProprite ,add commsion,fixed error handling fiexd final things
All checks were successful
Build frontend / build (push) Successful in 1m46s
All checks were successful
Build frontend / build (push) Successful in 1m46s
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user