File tree Expand file tree Collapse file tree 3 files changed +28
-7
lines changed
Expand file tree Collapse file tree 3 files changed +28
-7
lines changed Original file line number Diff line number Diff line change 44
55// @flow
66import { connect } from "react-redux" ;
7- import { bindActionCreators } from "redux" ;
87import React , { Component } from "react" ;
98
109import Breakpoint from "./Breakpoint" ;
1110
12- import actions from "../../actions" ;
1311import { getSelectedSource } from "../../selectors" ;
1412import getVisibleBreakpoints from "../../selectors/visibleBreakpoints" ;
1513import { makeLocationId } from "../../utils/breakpoint" ;
@@ -64,5 +62,4 @@ export default connect(
6462 breakpoints : getVisibleBreakpoints ( state ) ,
6563 selectedSource : getSelectedSource ( state )
6664 } ) ,
67- dispatch => bindActionCreators ( actions , dispatch )
6865) ( Breakpoints ) ;
Original file line number Diff line number Diff line change 66
77import React , { Component } from "react" ;
88import { connect } from "react-redux" ;
9- import { bindActionCreators } from "redux" ;
109import { isEnabled } from "devtools-config" ;
1110
1211import Reps from "devtools-reps" ;
@@ -237,9 +236,23 @@ export class Popup extends Component<Props> {
237236 }
238237}
239238
239+ const {
240+ addExpression,
241+ selectSourceURL,
242+ selectSource,
243+ loadObjectProperties,
244+ openLink
245+ } = actions ;
246+
240247export default connect (
241248 state => ( {
242249 loadedObjects : getLoadedObjects ( state )
243250 } ) ,
244- dispatch => bindActionCreators ( actions , dispatch )
251+ {
252+ addExpression,
253+ selectSourceURL,
254+ selectSource,
255+ loadObjectProperties,
256+ openLink
257+ }
245258) ( Popup ) ;
Original file line number Diff line number Diff line change 33 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
44
55import React , { PureComponent } from "react" ;
6- import { bindActionCreators } from "redux" ;
76import { connect } from "react-redux" ;
87import { debounce } from "lodash" ;
98
@@ -124,12 +123,24 @@ class Preview extends PureComponent {
124123 }
125124}
126125
126+ const {
127+ addExpression,
128+ loadObjectProperties,
129+ setPreview,
130+ clearPreview
131+ } = actions ;
132+
127133export default connect (
128134 state => ( {
129135 preview : getPreview ( state ) ,
130136 selectedSource : getSelectedSource ( state ) ,
131137 linesInScope : getInScopeLines ( state ) ,
132138 selectedFrameVisible : isSelectedFrameVisible ( state )
133139 } ) ,
134- dispatch => bindActionCreators ( actions , dispatch )
140+ {
141+ addExpression,
142+ loadObjectProperties,
143+ setPreview,
144+ clearPreview
145+ }
135146) ( Preview ) ;
You can’t perform that action at this time.
0 commit comments