Update src/shared/components/common/markdown-textarea.tsx

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
This commit is contained in:
Jay Sitter 2023-06-24 00:06:18 -04:00 committed by GitHub
parent 5d85e3a7c9
commit 4959d342bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -295,7 +295,7 @@ export class MarkdownTextArea extends Component<
)} )}
<button <button
type="button" type="button"
disabled={!this.state.content ? true : false} disabled={!this.state.content}
className={`btn btn-sm btn-secondary ms-2 ${ className={`btn btn-sm btn-secondary ms-2 ${
this.state.previewMode && "active" this.state.previewMode && "active"
}`} }`}