Skip to content

Commit 3f05a87

Browse files
committed
bioming
1 parent 82a70cc commit 3f05a87

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

web/libs/editor/src/components/Comments/Comment/CommentForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ export const CommentForm: FC<CommentFormProps> = observer(({ commentStore, annot
188188
<LinkState linking={linking} region={region} result={result} onUnlink={currentComment?.unsetLink} />
189189
</div>
190190
)}
191-
{commentStore.tooltipMessage && <div className={cn("comment-form-new").elem("tooltipMessage").toClassName()}>{commentStore.tooltipMessage}</div>}
191+
{commentStore.tooltipMessage && (
192+
<div className={cn("comment-form-new").elem("tooltipMessage").toClassName()}>{commentStore.tooltipMessage}</div>
193+
)}
192194
</form>
193195
);
194196
});

web/libs/editor/src/components/Comments/Comment/LinkState.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ const LinkedRegion: FC<LinkedRegionProps> = observer(({ region, result, interact
9696
<div className={cn("link-state-region").elem("label").toClassName()}>
9797
<RegionLabel item={region} />
9898
</div>
99-
{region?.text && <div className={cn("link-state-region").elem("text").toClassName()}>{region.text.replace(/\\n/g, "\n")}</div>}
99+
{region?.text && (
100+
<div className={cn("link-state-region").elem("text").toClassName()}>
101+
{region.text.replace(/\\n/g, "\n")}
102+
</div>
103+
)}
100104
</div>
101105
)}
102106
{onUnlink && (

web/libs/editor/src/components/Comments/CommentFormBase.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ export const CommentFormBase: FC<CommentFormProps> = observer(
4545
);
4646

4747
return (
48-
<form
49-
ref={formRef as any}
50-
className={cn("comment-form").mod({ inline }).toClassName()}
51-
onSubmit={submitHandler}
52-
>
48+
<form ref={formRef as any} className={cn("comment-form").mod({ inline }).toClassName()} onSubmit={submitHandler}>
5349
<TextArea
5450
actionRef={actionRef}
5551
name="comment"

0 commit comments

Comments
 (0)