]> Untitled Git - lemmy-ui.git/commitdiff
Update src/shared/components/common/markdown-textarea.tsx
authorJay Sitter <jsit@users.noreply.github.com>
Sat, 24 Jun 2023 04:06:40 +0000 (00:06 -0400)
committerGitHub <noreply@github.com>
Sat, 24 Jun 2023 04:06:40 +0000 (00:06 -0400)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
src/shared/components/common/markdown-textarea.tsx

index dffb58e37dfabceab9a939135818653807dc6627..af3a4df5685bd1a59a5a88e68f8beff85b3ad871 100644 (file)
@@ -296,9 +296,9 @@ export class MarkdownTextArea extends Component<
             <button
               type="button"
               disabled={!this.state.content}
-              className={`btn btn-sm btn-secondary ms-2 ${
-                this.state.previewMode && "active"
-              }`}
+              className={classNames("btn btn-sm btn-secondary ms-2", {
+                  active: this.state.previewMode
+              })}
               onClick={linkEvent(this, this.handlePreviewToggle)}
             >
               {this.state.previewMode