Browse Source

fix ts errors

drawing-pad
Stephanie Gredell 1 month ago
parent
commit
c1c4d83d57
  1. 2
      frontend/src/components/Navbar/Navbar.tsx
  2. 2
      frontend/src/pages/HomePage.tsx

2
frontend/src/components/Navbar/Navbar.tsx

@ -5,7 +5,7 @@ import { useChannels } from '../../hooks/useChannels';
import './Navbar.css'; import './Navbar.css';
export function Navbar() { export function Navbar() {
const { isAuthenticated, user, logout } = useAuth(); const { isAuthenticated, logout } = useAuth();
const location = useLocation(); const location = useLocation();
const [searchParams, setSearchParams] = useSearchParams(); const [searchParams, setSearchParams] = useSearchParams();
const { channels } = useChannels(); const { channels } = useChannels();

2
frontend/src/pages/HomePage.tsx

@ -14,7 +14,7 @@ export function HomePage() {
const sort = (searchParams.get('sort') || 'newest') as 'newest' | 'oldest' | 'popular'; const sort = (searchParams.get('sort') || 'newest') as 'newest' | 'oldest' | 'popular';
const selectedChannel = searchParams.get('channel') || undefined; const selectedChannel = searchParams.get('channel') || undefined;
const { videos, loading, error, meta, refreshing } = useVideos({ const { videos, loading, error, meta } = useVideos({
page, page,
limit: 12, limit: 12,
search: search || undefined, search: search || undefined,

Loading…
Cancel
Save