]> Untitled Git - lemmy-ui.git/commitdiff
fix: Clarify a comment
authorJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 04:38:17 +0000 (00:38 -0400)
committerJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 04:38:17 +0000 (00:38 -0400)
src/shared/components/common/markdown-textarea.tsx

index af3a4df5685bd1a59a5a88e68f8beff85b3ad871..f83843e9017eed321fd087d27498b64af210c23f 100644 (file)
@@ -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)}
             >