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:40 -04:00 committed by GitHub
parent 4959d342bb
commit d735369db0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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