diff --git a/apps/web/src/components/modals/basic.tsx b/apps/web/src/components/modals/basic.tsx index b3c8025..56062a4 100644 --- a/apps/web/src/components/modals/basic.tsx +++ b/apps/web/src/components/modals/basic.tsx @@ -4,14 +4,9 @@ import { reduceDisplay } from "./utils"; import { Card, CardHeader } from "@tensamin/ui/cmp/card"; import { Skeleton } from "@tensamin/ui/cmp/skeleton"; -/** - * Executes Basic. - * @param props Parameter props. - * @returns unknown. - */ export function Basic(props: { user: User }) { return ( - + @@ -25,10 +20,6 @@ export function Basic(props: { user: User }) { ); } -/** - * Executes Loading. - * @returns unknown. - */ export function Loading() { - return ; + return ; } diff --git a/apps/web/src/features/conversation/list/body.tsx b/apps/web/src/features/conversation/list/body.tsx index 28b35d0..53ce98a 100644 --- a/apps/web/src/features/conversation/list/body.tsx +++ b/apps/web/src/features/conversation/list/body.tsx @@ -23,20 +23,20 @@ export default function List() { const virtualizer = useVirtualizer({ count: category === "conversations" ? conversations.length : communities.length, - estimateSize: () => 80, + estimateSize: () => 60, getScrollElement: () => scrollRef.current, }); return ( -
+
; -} - -/** - * Renders the conversation modal user preview card skeleton while loading user data. - * @returns Conversation preview card skeleton JSX. - */ -function renderConversationUserLoading() { - return ; -} - -/** - * Renders a conversation context-menu entry for a specific user. - * @param props Component props with selected user id. - * @returns Conversation modal trigger and menu JSX. - */ -export default function ConversationModal(props: { userId: number }) { +export default function ConversationModal({ userId }: { userId: number }) { const navigate = useNavigate(); - /** - * Navigates to the selected conversation in chat view. - * @returns Void. - */ - const onConversationClick = () => { - void navigate({ to: "/chat", search: { id: props.userId } }); - }; - return ( - -
- -
-
+ navigate({ to: "/chat", search: { id: userId } })} + > + } + userId={userId} + component={(user) => } + /> +
+ } + > Test