diff --git a/frontend/src/components/Navbar/Navbar.tsx b/frontend/src/components/Navbar/Navbar.tsx index 0fd01f7..4d9ee1e 100644 --- a/frontend/src/components/Navbar/Navbar.tsx +++ b/frontend/src/components/Navbar/Navbar.tsx @@ -5,7 +5,7 @@ import { useChannels } from '../../hooks/useChannels'; import './Navbar.css'; export function Navbar() { - const { isAuthenticated, user, logout } = useAuth(); + const { isAuthenticated, logout } = useAuth(); const location = useLocation(); const [searchParams, setSearchParams] = useSearchParams(); const { channels } = useChannels(); diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index b632852..4038e8a 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -14,7 +14,7 @@ export function HomePage() { const sort = (searchParams.get('sort') || 'newest') as 'newest' | 'oldest' | 'popular'; const selectedChannel = searchParams.get('channel') || undefined; - const { videos, loading, error, meta, refreshing } = useVideos({ + const { videos, loading, error, meta } = useVideos({ page, limit: 12, search: search || undefined,