From 4a9380313b458f32aafed1d4ddf3b4cd273cf36c Mon Sep 17 00:00:00 2001 From: mouazkh Date: Wed, 24 Jun 2026 00:07:09 +0300 Subject: [PATCH] fixed the support and removed the send general report no need for that also fixed the client layout --- app/components/BottomNav.js | 10 ++- app/settings/page.js | 118 +++++++++++------------------------- 2 files changed, 46 insertions(+), 82 deletions(-) diff --git a/app/components/BottomNav.js b/app/components/BottomNav.js index c72e92a..e0a61ff 100644 --- a/app/components/BottomNav.js +++ b/app/components/BottomNav.js @@ -1,11 +1,13 @@ "use client"; import Link from "next/link"; +import { usePathname } from "next/navigation"; import { Home, Building, Calendar, Heart, Bell, Settings, CreditCard, Briefcase } from "lucide-react"; import React, { useEffect, useState } from "react"; import { useNotifications } from "@/app/contexts/NotificationsContext"; export default function BottomNav({ isOwner, isOwnerOrAgent }) { + const pathname = usePathname(); const { unreadCount } = useNotifications(); const [isMounted, setIsMounted] = useState(false); const bookingsHref = isOwner ? "/owner/reservations" : "/reservations"; @@ -25,16 +27,22 @@ export default function BottomNav({ isOwner, isOwnerOrAgent }) { { href: "/settings", label: "الإعدادات", icon: Settings }, ]; + const isActive = (href) => { + if (href === "/") return pathname === "/"; + return pathname.startsWith(href); + }; + return (