|
|
|
@ -6,8 +6,6 @@ import type { Reply } from '~/types/offers';
|
|
|
|
|
|
|
|
|
|
type Props = Readonly<{
|
|
|
|
|
comment: Reply;
|
|
|
|
|
// HandleReply?: (message: string, replyingToId: string) => void;
|
|
|
|
|
// isLoading?: boolean;
|
|
|
|
|
profileId: string;
|
|
|
|
|
token?: string;
|
|
|
|
|
}>;
|
|
|
|
@ -16,20 +14,16 @@ export default function ExpandableCommentCard({
|
|
|
|
|
comment,
|
|
|
|
|
profileId,
|
|
|
|
|
token = '',
|
|
|
|
|
}: // HandleReply,
|
|
|
|
|
// isLoading,
|
|
|
|
|
Props) {
|
|
|
|
|
}: Props) {
|
|
|
|
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<CommentCard
|
|
|
|
|
comment={comment}
|
|
|
|
|
handleExpanded={() => setIsExpanded(!isExpanded)}
|
|
|
|
|
// HandleReply={handleReply}
|
|
|
|
|
isExpanded={isExpanded}
|
|
|
|
|
profileId={profileId}
|
|
|
|
|
replyLength={comment.replies?.length ?? 0}
|
|
|
|
|
// IsLoading={isLoading}
|
|
|
|
|
token={token}
|
|
|
|
|
/>
|
|
|
|
|
{comment.replies && (
|
|
|
|
@ -40,7 +34,7 @@ Props) {
|
|
|
|
|
key={reply.id}
|
|
|
|
|
comment={reply}
|
|
|
|
|
disableReply={true}
|
|
|
|
|
profileId={profileId} // IsLoading={isLoading}
|
|
|
|
|
profileId={profileId}
|
|
|
|
|
/>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|