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

Use Flow instead of PropTypes in Breakpoint and ColumnBreakpoint. #2823

Merged
merged 1 commit into from
May 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;