fix(web): restore comment typing and portal combobox menus
This commit is contained in:
@@ -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;
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user