diff --git a/.gitea/workflows/deployer.yaml b/.gitea/workflows/deployer.yaml index 2449e5a..1e7ec34 100644 --- a/.gitea/workflows/deployer.yaml +++ b/.gitea/workflows/deployer.yaml @@ -6,7 +6,7 @@ on: jobs: build: runs-on: ubuntu-latest - steps: + steps: - name: Clone repository uses: actions/checkout@v2 with: diff --git a/app/components/BottomNav.js b/app/components/BottomNav.js index aa09f8d..7729c25 100644 --- a/app/components/BottomNav.js +++ b/app/components/BottomNav.js @@ -1,7 +1,7 @@ "use client"; import Link from "next/link"; -import { Home, Building, Calendar, Heart, Bell, Settings } from "lucide-react"; +import { Home, Building, Calendar, Heart, Bell, Settings, CreditCard } from "lucide-react"; import React, { useEffect, useState } from "react"; import { useNotifications } from "@/app/contexts/NotificationsContext"; @@ -19,6 +19,7 @@ export default function BottomNav({ isOwner }) { { href: "/properties", label: "عقاراتنا", icon: Building }, { href: bookingsHref, label: "الحجوزات", icon: Calendar }, { href: "/favorites", label: "المفضلة", icon: Heart }, + { href: "/payments", label: "المدفوعات", icon: CreditCard }, { href: "/notifications", label: "الإشعارات", icon: Bell, badge: isMounted ? unreadCount : 0 }, { href: "/settings", label: "الإعدادات", icon: Settings }, ]; diff --git a/app/components/home/HeroSearch.js b/app/components/home/HeroSearch.js index ff6d0c4..ffe10ea 100644 --- a/app/components/home/HeroSearch.js +++ b/app/components/home/HeroSearch.js @@ -67,9 +67,7 @@ export default function HeroSearch({ onSearch, isAuthenticated }) { setActiveTab(tab); if ((tab === 'rent' || tab === 'sell') && !isAuthenticated) { setShowLoginDialog(true); - return; } - handleSearch(); }; const handleSearch = () => { @@ -139,30 +137,32 @@ export default function HeroSearch({ onSearch, isAuthenticated }) { ))} -
- - -
+ {activeTab === 'rent' && ( +
+ + +
+ )}