Edit admin page

Edit home image
Added properties page
This commit is contained in:
Rahaf
2026-02-15 01:53:37 +03:00
parent 61c16f6cec
commit 6d81ff56a8
19 changed files with 4200 additions and 828 deletions

View File

@ -4,7 +4,7 @@ import Link from 'next/link';
export function NavLink({ href, children }) {
const pathname = usePathname();
const isActive = pathname === href;
const isActive = pathname === href || pathname.startsWith(href + '/');
return (
<Link
href={href}
@ -24,7 +24,7 @@ export function NavLink({ href, children }) {
export function MobileNavLink({ href, children, onClick }) {
const pathname = usePathname();
const isActive = pathname === href;
const isActive = pathname === href || pathname.startsWith(href + '/');
return (
<Link
href={href}