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