Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Use Flow instead of PropTypes in Breakpoint and ColumnBreakpoint. (#2823
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zacanger authored and jasonLaster committed May 5, 2017
1 parent 570fb08 commit 4ec8694
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/components/Editor/Breakpoint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import { PropTypes, Component } from "react";
import { Component } from "react";
import { isEnabled } from "devtools-config";
import ReactDOM from "../../../node_modules/react-dom/dist/react-dom";

Expand All @@ -20,6 +20,11 @@ function makeMarker(isDisabled: boolean) {
}

class Breakpoint extends Component {
props: {
breakpoint: Object,
editor: Object
};

addBreakpoint: Function;

constructor() {
Expand Down Expand Up @@ -77,11 +82,6 @@ class Breakpoint extends Component {
}
}

Breakpoint.propTypes = {
breakpoint: PropTypes.object.isRequired,
editor: PropTypes.object.isRequired
};

Breakpoint.displayName = "Breakpoint";

export default Breakpoint;
12 changes: 6 additions & 6 deletions src/components/Editor/ColumnBreakpoint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import { PropTypes, Component } from "react";
import { Component } from "react";
import { isEnabled } from "devtools-config";
const ReactDOM = require("react-dom");
import Svg from "../shared/Svg";
Expand All @@ -19,6 +19,11 @@ function makeBookmark() {
}

class ColumnBreakpoint extends Component {
props: {
breakpoint: Object,
editor: Object
};

addBreakpoint: Function;
bookmark: ?BookMarkType;

Expand Down Expand Up @@ -73,11 +78,6 @@ class ColumnBreakpoint extends Component {
}
}

ColumnBreakpoint.propTypes = {
breakpoint: PropTypes.object.isRequired,
editor: PropTypes.object.isRequired
};

ColumnBreakpoint.displayName = "ColumnBreakpoint";

export default ColumnBreakpoint;

0 comments on commit 4ec8694

Please sign in to comment.