fix
This commit is contained in:
@@ -13,7 +13,7 @@ const navLinks = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export function CommonHeader() {
|
export function CommonHeader() {
|
||||||
const { data: session } = useSession();
|
const { data: session, status } = useSession();
|
||||||
const { profileImage, profileName, avatarLoaded, setAvatarLoaded, notificationCount } = useHeaderData();
|
const { profileImage, profileName, avatarLoaded, setAvatarLoaded, notificationCount } = useHeaderData();
|
||||||
const [showProfileMenu, setShowProfileMenu] = useState(false);
|
const [showProfileMenu, setShowProfileMenu] = useState(false);
|
||||||
const [showGuestMenu, setShowGuestMenu] = useState(false);
|
const [showGuestMenu, setShowGuestMenu] = useState(false);
|
||||||
@@ -85,7 +85,9 @@ export function CommonHeader() {
|
|||||||
|
|
||||||
{/* Right Side Icons */}
|
{/* Right Side Icons */}
|
||||||
<div className="flex items-center gap-2 md:gap-4">
|
<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 */}
|
{/* Notification Bell */}
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
Reference in New Issue
Block a user