Skip to content

Commit

Permalink
Switch Scopes form PropTypes to Flow Props (firefox-devtools#4180)
Browse files Browse the repository at this point in the history
  • Loading branch information
borisstgermain authored and Johnny Khalil committed Oct 13, 2017
1 parent 97baf3d commit 5e7cbf3
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/components/SecondaryPanes/Scopes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import React, { PropTypes, PureComponent } from "react";
import React, { PureComponent } from "react";
import { bindActionCreators } from "redux";
import { connect } from "react-redux";
import actions from "../../actions";
Expand All @@ -12,15 +12,25 @@ import {
import { getScopes } from "../../utils/scopes";

import { ObjectInspector } from "devtools-reps";
import type { Pause, LoadedObject } from "debugger-html";

import "./Scopes.css";

type Props = {
pauseInfo: Pause,
loadedObjects: LoadedObject[],
loadObjectProperties: Object => void,
selectedFrame: Object,
frameScopes: Object
};

class Scopes extends PureComponent {
props: Props;
state: {
scopes: any
};

constructor(props, ...args) {
constructor(props: Props, ...args) {
const { pauseInfo, selectedFrame, frameScopes } = props;

super(props, ...args);
Expand Down Expand Up @@ -80,14 +90,6 @@ class Scopes extends PureComponent {
}
}

Scopes.propTypes = {
pauseInfo: PropTypes.object,
loadedObjects: PropTypes.object,
loadObjectProperties: PropTypes.func,
selectedFrame: PropTypes.object,
frameScopes: PropTypes.object
};

export default connect(
state => {
const selectedFrame = getSelectedFrame(state);
Expand Down

0 comments on commit 5e7cbf3

Please sign in to comment.