From a9e6b47ad8eea72ea8e77473d167db668c7e94be Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sat, 24 Jun 2023 00:38:17 -0400 Subject: [PATCH] fix: Clarify a comment --- src/shared/components/common/markdown-textarea.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index af3a4df5..f83843e9 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -35,7 +35,8 @@ interface MarkdownTextAreaProps { buttonTitle?: string; maxLength?: number; /** - * Whether this form is for a reply to a Private Message + * Whether this form is for a reply to a Private Message. + * If true, a "Cancel" button is shown that will close the reply. */ replyType?: boolean; focus?: boolean; @@ -297,7 +298,7 @@ export class MarkdownTextArea extends Component< type="button" disabled={!this.state.content} className={classNames("btn btn-sm btn-secondary ms-2", { - active: this.state.previewMode + active: this.state.previewMode, })} onClick={linkEvent(this, this.handlePreviewToggle)} >