Skip to content

Commit 1f64c77

Browse files
committed
Organizing imports + linting
1 parent c29c399 commit 1f64c77

File tree

6 files changed

+8
-16
lines changed

6 files changed

+8
-16
lines changed

src/components-layout/HorizontalLayout.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import * as React from "react";
2-
import {Command} from "../types";
2+
import {Command, LayoutProps} from "../types";
33
import {ReactMde} from "../ReactMde";
44
import {MdePreview, MdeEditor, MdeToolbar} from "../components";
5-
import {LayoutProps} from "../types/LayoutProps";
6-
import {TAB_CODE, TAB_PREVIEW} from "./TabbedLayout";
75

86
export class HorizontalLayout extends React.Component<LayoutProps, {}> {
97
state = {
@@ -31,12 +29,12 @@ export class HorizontalLayout extends React.Component<LayoutProps, {}> {
3129
handleShowCode = () => {
3230
if (!this.state.showCode || this.state.showPreview)
3331
this.setState({showCode: !this.state.showCode});
34-
};
32+
}
3533

3634
handleShowPreview = () => {
3735
if (!this.state.showPreview || this.state.showCode)
3836
this.setState({showPreview: !this.state.showPreview});
39-
};
37+
}
4038

4139
/**
4240
* Renders react-mde

src/components-layout/NoPreviewLayout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from "react";
2-
import {Command} from "../types";
2+
import {Command, LayoutProps} from "../types";
33
import {ReactMde} from "../ReactMde";
44
import {MdePreview, MdeEditor, MdeToolbar} from "../components";
5-
import {LayoutProps} from "../types/LayoutProps";
65

76
export class NoPreviewLayout extends React.Component<LayoutProps, {}> {
87

src/components-layout/TabbedLayout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import * as React from "react";
2-
import {Command} from "../types";
2+
import {Command, LayoutProps} from "../types";
33
import {ReactMde} from "../ReactMde";
44
import {MdePreview, MdeEditor, MdeToolbar} from "../components";
5-
import {LayoutProps} from "../types/LayoutProps";
6-
75

86
export const TAB_CODE: string = "TAB_CODE";
97
export const TAB_PREVIEW: string = "TAB_PREVIEW";
@@ -16,8 +14,6 @@ export class TabbedLayout extends React.Component<LayoutProps, {}> {
1614
editorRef: MdeEditor;
1715
previewRef: MdePreview;
1816

19-
20-
2117
/**
2218
* Handler for the textArea value change
2319
* @memberOf ReactMde

src/components-layout/VerticalLayout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from "react";
2-
import {Command} from "../types";
2+
import {Command, LayoutProps} from "../types";
33
import {ReactMde} from "../ReactMde";
44
import {MdePreview, MdeEditor, MdeToolbar} from "../components";
5-
import {LayoutProps} from "../types/LayoutProps";
65

76
export class VerticalLayout extends React.Component<LayoutProps, {}> {
87
state = {

src/components/MdeEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {MdeState} from "../types";
33
import {Editor, EditorState} from "draft-js";
44

55
export interface MdeEditorProps {
6-
className?: string,
6+
className?: string;
77
onChange: (value: EditorState) => void;
88
editorRef?: (ref: MdeEditor) => void;
99
editorState: MdeState;

src/components/MdePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from "react";
22

33
export interface ReactMdePreviewProps {
4-
className?: string,
4+
className?: string;
55
previewRef?: (ref: MdePreview) => void;
66
html: string;
77
}

0 commit comments

Comments
 (0)