fix build errors
This commit is contained in:
parent
3de1ce050d
commit
a43f371022
|
|
@ -117,7 +117,7 @@ export default function MessagesPage() {
|
|||
if (user) {
|
||||
fetchConversations();
|
||||
}
|
||||
}, [user, fetchConversations]);
|
||||
}, [user, fetchConversations, refreshUnreadCount]);
|
||||
|
||||
// Real-time polling
|
||||
useEffect(() => {
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ export default function Navbar() {
|
|||
|
||||
<ul className="nav-links desktop-links">
|
||||
<li className={pathname === "/" ? "current-menu-item" : ""}>
|
||||
{/* eslint-disable-next-line @next/next/no-html-link-for-pages */}
|
||||
<a href="/">HEM</a>
|
||||
</li>
|
||||
<li className={pathname === "/products" ? "current-menu-item" : ""}>
|
||||
|
|
@ -62,6 +63,7 @@ export default function Navbar() {
|
|||
|
||||
{/* Center: Logo Only */}
|
||||
<div className="nav-center">
|
||||
{/* eslint-disable-next-line @next/next/no-html-link-for-pages */}
|
||||
<a href="/" className="logo-link">
|
||||
<Image
|
||||
src={logo}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ interface NotificationContextType {
|
|||
const NotificationContext = createContext<NotificationContextType | undefined>(undefined);
|
||||
|
||||
export function NotificationProvider({ children }: { children: React.ReactNode }) {
|
||||
const { user, isAuthenticated } = useAuth();
|
||||
const { isAuthenticated } = useAuth();
|
||||
const [unreadCount, setUnreadCount] = useState(0);
|
||||
const [isMounted, setIsMounted] = useState(false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue