diff --git a/frontend/src/api/import.ts b/frontend/src/api/import.ts index 98c6a7da..3c9a5460 100644 --- a/frontend/src/api/import.ts +++ b/frontend/src/api/import.ts @@ -44,7 +44,7 @@ export const getImportStatus = async (): Promise<{ has_pending: boolean; session try { const { data } = await client.get<{ has_pending: boolean; session?: ImportSession }>('/import/status'); return data; - } catch (error) { + } catch { // Fallback if status endpoint doesn't exist, though the hook used it. return { has_pending: false }; } diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index deed7060..67af7d6d 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -3,7 +3,7 @@ import { Link, useLocation } from 'react-router-dom' import { useQuery } from '@tanstack/react-query' import { ThemeToggle } from './ThemeToggle' import { Button } from './ui/Button' -import { useAuth } from '../context/AuthContext' +import { useAuth } from '../hooks/useAuth' import { checkHealth } from '../api/health' import NotificationCenter from './NotificationCenter' import SystemStatus from './SystemStatus' diff --git a/frontend/src/components/NotificationCenter.tsx b/frontend/src/components/NotificationCenter.tsx index 7998bef6..195f5592 100644 --- a/frontend/src/components/NotificationCenter.tsx +++ b/frontend/src/components/NotificationCenter.tsx @@ -43,6 +43,7 @@ const NotificationCenter: React.FC = () => {