Added API for notifications and edit style

This commit is contained in:
Rahaf
2026-04-15 12:07:39 +03:00
parent ae600ad41b
commit 9c2a748ae9
5 changed files with 135 additions and 79 deletions

View File

@ -6,6 +6,7 @@ import Link from "next/link";
import Image from "next/image";
import { NavLink, MobileNavLink } from "./components/NavLinks";
import { FavoritesProvider } from '@/app/contexts/FavoritesContext';
import { NotificationsProvider } from '@/app/contexts/NotificationsContext';
import FloatingSidebar from '@/app/components/FloatingSidebar';
import {
Globe,
@ -708,10 +709,12 @@ export default function ClientLayout({ children }) {
<main
className={`${!isAuthPage && !isProfilePage ? "pt-20" : ""} min-h-screen bg-gradient-to-b from-gray-50 to-white ${currentLanguage === "ar" ? "text-right" : "text-left"}`}
>
<FavoritesProvider>
{children}
<FloatingSidebar isRTL={currentLanguage === 'ar'} isAdmin={isAdmin} />
</FavoritesProvider>
<NotificationsProvider>
<FavoritesProvider>
{children}
<FloatingSidebar isRTL={currentLanguage === 'ar'} isAdmin={isAdmin} />
</FavoritesProvider>
</NotificationsProvider>
</main>
{!isAuthPage && !isProfilePage && (