Skip to content

Commit bfbfbb8

Browse files
committed
Linting
1 parent 6dbd9b9 commit bfbfbb8

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/components/Preview.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ export class Preview extends React.Component<
4949
}
5050

5151
render() {
52-
const { classes, minHeight, loadingPreview, refObject, heightUnits } = this.props;
52+
const {
53+
classes,
54+
minHeight,
55+
loadingPreview,
56+
refObject,
57+
heightUnits
58+
} = this.props;
5359
const { preview, loading } = this.state;
5460
const finalHtml = loading ? loadingPreview : preview;
5561

@@ -67,7 +73,8 @@ export class Preview extends React.Component<
6773
content = <div className="mde-preview-content">{finalHtml}</div>;
6874
}
6975

70-
const minHeightVal = (minHeight && heightUnits) ? (minHeight + 10) + heightUnits : minHeight + 10;
76+
const minHeightVal =
77+
minHeight && heightUnits ? minHeight + 10 + heightUnits : minHeight + 10;
7178

7279
return (
7380
<div

src/components/TextArea.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ export class TextArea extends React.Component<TextAreaProps, TextAreaState> {
385385
"textarea") as DetailedHTMLFactory<
386386
TextareaHTMLAttributes<HTMLTextAreaElement>,
387387
HTMLTextAreaElement
388-
>;
389-
390-
const heightVal = (height && heightUnits) ? height + heightUnits : height;
388+
>;
389+
390+
const heightVal = height && heightUnits ? height + heightUnits : height;
391391

392392
return (
393393
<div className="mde-textarea-wrapper">

0 commit comments

Comments
 (0)