diff --git a/frontend/src/components/Layout/ListItem.tsx b/frontend/src/components/Layout/ListItem.tsx index 71c4d81..602e6bd 100644 --- a/frontend/src/components/Layout/ListItem.tsx +++ b/frontend/src/components/Layout/ListItem.tsx @@ -9,6 +9,7 @@ export interface ListItemProps { viewers: number; thumbnail?: string; onItemClick?: () => void; + extraClasses?: string; } const ListItem: React.FC = ({ @@ -19,12 +20,12 @@ const ListItem: React.FC = ({ viewers, thumbnail, onItemClick, + extraClasses = "", }) => { return (
diff --git a/frontend/src/components/Layout/ListRow.tsx b/frontend/src/components/Layout/ListRow.tsx index 6768e9b..cbece49 100644 --- a/frontend/src/components/Layout/ListRow.tsx +++ b/frontend/src/components/Layout/ListRow.tsx @@ -14,6 +14,7 @@ interface ListRowProps { wrap: boolean; onClick: (itemName: string) => void; extraClasses?: string; + itemExtraClasses?: string; children?: React.ReactNode; } @@ -25,6 +26,7 @@ const ListRow: React.FC = ({ wrap, onClick, extraClasses = "", + itemExtraClasses = "", children, }) => { const slider = useRef(null); @@ -91,6 +93,7 @@ const ListRow: React.FC = ({ ? onClick?.(item.streamer) : onClick?.(item.title) } + extraClasses={`${itemExtraClasses} min-w-[25vw]`} /> ))}
diff --git a/frontend/src/pages/UserPage.tsx b/frontend/src/pages/UserPage.tsx index f9a6d77..10fef04 100644 --- a/frontend/src/pages/UserPage.tsx +++ b/frontend/src/pages/UserPage.tsx @@ -1,5 +1,4 @@ import React, { useState, useEffect } from "react"; -import Navbar from "../components/Navigation/Navbar"; import AuthModal from "../components/Auth/AuthModal"; import { useAuthModal } from "../hooks/useAuthModal"; import { useAuth } from "../context/AuthContext";