Merge pull request #1651 from LemmyNet/chore/use-classnames-instead

Use `classNames` in #1650
This commit is contained in:
SleeplessOne1917 2023-06-27 13:48:50 -04:00 committed by GitHub
commit 06b0151621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,9 +160,9 @@ export class MarkdownTextArea extends Component<
<div className="col-12"> <div className="col-12">
<div className="rounded bg-light border"> <div className="rounded bg-light border">
<div <div
className={`d-flex flex-wrap border-bottom ${ className={classNames("d-flex flex-wrap border-bottom", {
this.isDisabled ? "no-click" : "" "no-click": this.isDisabled,
}`} })}
> >
{this.getFormatButton("bold", this.handleInsertBold)} {this.getFormatButton("bold", this.handleInsertBold)}
{this.getFormatButton("italic", this.handleInsertItalic)} {this.getFormatButton("italic", this.handleInsertItalic)}