fix(web): restore comment typing and portal combobox menus

This commit is contained in:
2026-03-30 13:32:51 +02:00
parent 5b60cf5553
commit 9268a38df4
3 changed files with 55 additions and 39 deletions
@@ -4,7 +4,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
import { trpc } from "~/lib/trpc/client.js";
interface CommentInputProps {
entityType: string;
entityType: "estimate";
entityId: string;
parentId?: string;
onSubmit: (body: string) => void;
@@ -31,8 +31,10 @@ interface CommentItem {
replies: CommentReply[];
}
type CommentEntityType = "estimate";
interface CommentThreadProps {
entityType: string;
entityType: CommentEntityType;
entityId: string;
}
@@ -116,7 +118,7 @@ function SingleComment({
isReply = false,
}: {
comment: CommentItem | CommentReply;
entityType: string;
entityType: CommentEntityType;
entityId: string;
isReply?: boolean;
}) {