From aa874ca78edb1205c3078e104bba592ef872f3a4 Mon Sep 17 00:00:00 2001 From: zacanger Date: Fri, 5 May 2017 09:32:17 -0600 Subject: [PATCH] Use Flow instead of PropTypes in Breakpoint and ColumnBreakpoint. --- src/components/Editor/Breakpoint.js | 12 ++++++------ src/components/Editor/ColumnBreakpoint.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/Editor/Breakpoint.js b/src/components/Editor/Breakpoint.js index fa65574801..02ee707a6e 100644 --- a/src/components/Editor/Breakpoint.js +++ b/src/components/Editor/Breakpoint.js @@ -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"; @@ -20,6 +20,11 @@ function makeMarker(isDisabled: boolean) { } class Breakpoint extends Component { + props: { + breakpoint: Object, + editor: Object + }; + addBreakpoint: Function; constructor() { @@ -77,11 +82,6 @@ class Breakpoint extends Component { } } -Breakpoint.propTypes = { - breakpoint: PropTypes.object.isRequired, - editor: PropTypes.object.isRequired -}; - Breakpoint.displayName = "Breakpoint"; export default Breakpoint; diff --git a/src/components/Editor/ColumnBreakpoint.js b/src/components/Editor/ColumnBreakpoint.js index 2f56b035d1..579b803652 100644 --- a/src/components/Editor/ColumnBreakpoint.js +++ b/src/components/Editor/ColumnBreakpoint.js @@ -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"; @@ -19,6 +19,11 @@ function makeBookmark() { } class ColumnBreakpoint extends Component { + props: { + breakpoint: Object, + editor: Object + }; + addBreakpoint: Function; bookmark: ?BookMarkType; @@ -73,11 +78,6 @@ class ColumnBreakpoint extends Component { } } -ColumnBreakpoint.propTypes = { - breakpoint: PropTypes.object.isRequired, - editor: PropTypes.object.isRequired -}; - ColumnBreakpoint.displayName = "ColumnBreakpoint"; export default ColumnBreakpoint;