This commit is contained in:
pradeepkumar
2026-03-27 11:56:18 +05:30
parent 881c96580e
commit bed03ad949

View File

@@ -13,7 +13,7 @@ const navLinks = [
];
export function CommonHeader() {
const { data: session } = useSession();
const { data: session, status } = useSession();
const { profileImage, profileName, avatarLoaded, setAvatarLoaded, notificationCount } = useHeaderData();
const [showProfileMenu, setShowProfileMenu] = useState(false);
const [showGuestMenu, setShowGuestMenu] = useState(false);
@@ -85,7 +85,9 @@ export function CommonHeader() {
{/* Right Side Icons */}
<div className="flex items-center gap-2 md:gap-4">
{session ? (
{status === 'loading' ? (
<div className="w-[35px] h-[35px] rounded-full shimmer-loading" />
) : session ? (
<>
{/* Notification Bell */}
<Link