@@ -71,29 +71,25 @@ var CascadingPane = function (_React$Component) {
7171 _createClass ( CascadingPane , [ {
7272 key : 'componentWillMount' ,
7373 value : function componentWillMount ( ) {
74- var _props = this . props ,
75- config = _props . config ,
76- getCascadingNav = _props . getCascadingNav ;
74+ var getCascadingNav = this . props . getCascadingNav ;
7775
78- getCascadingNav ( config ) ;
76+ getCascadingNav ( ) ;
7977 }
8078 } , {
8179 key : 'renderNav' ,
8280 value : function renderNav ( child ) {
8381 var _this2 = this ;
8482
85- var _props2 = this . props ,
86- config = _props2 . config ,
87- location = _props2 . location ,
88- getCascadingNav = _props2 . getCascadingNav ,
89- navData = _props2 . navData ,
90- navFetch = _props2 . navFetch ,
91- fetchedNav = _props2 . fetchedNav ;
83+ var _props = this . props ,
84+ location = _props . location ,
85+ getCascadingNav = _props . getCascadingNav ,
86+ navData = _props . navData ,
87+ navFetch = _props . navFetch ,
88+ fetchedNav = _props . fetchedNav ;
9289
9390
9491 return _react2 . default . cloneElement ( child , {
9592 key : 0 ,
96- config : config ,
9793 data : navData ,
9894 getCascadingNav : getCascadingNav ,
9995 navFetch : navFetch ,
@@ -109,23 +105,21 @@ var CascadingPane = function (_React$Component) {
109105 value : function renderMainView ( child ) {
110106 var _this3 = this ;
111107
112- var _props3 = this . props ,
113- config = _props3 . config ,
114- getCascadingNav = _props3 . getCascadingNav ,
115- getCascadingMainView = _props3 . getCascadingMainView ,
116- location = _props3 . location ,
117- mainData = _props3 . mainData ,
118- navFetch = _props3 . navFetch ,
119- mainViewFetch = _props3 . mainViewFetch ,
120- fetchedNav = _props3 . fetchedNav ,
121- fetchedMainView = _props3 . fetchedMainView ,
122- visibilityFilter = _props3 . visibilityFilter ;
108+ var _props2 = this . props ,
109+ getCascadingNav = _props2 . getCascadingNav ,
110+ getCascadingMainView = _props2 . getCascadingMainView ,
111+ location = _props2 . location ,
112+ mainData = _props2 . mainData ,
113+ navFetch = _props2 . navFetch ,
114+ mainViewFetch = _props2 . mainViewFetch ,
115+ fetchedNav = _props2 . fetchedNav ,
116+ fetchedMainView = _props2 . fetchedMainView ,
117+ visibilityFilter = _props2 . visibilityFilter ;
123118 var selectedGroup = this . state . selectedGroup ;
124119
125120
126121 return _react2 . default . cloneElement ( child , {
127122 key : 1 ,
128- config : config ,
129123 groupData : selectedGroup ,
130124 mainData : mainData ,
131125 getCascadingMainView : getCascadingMainView ,
@@ -146,24 +140,22 @@ var CascadingPane = function (_React$Component) {
146140 } , {
147141 key : 'renderSubView' ,
148142 value : function renderSubView ( child ) {
149- var _props4 = this . props ,
150- config = _props4 . config ,
151- getCascadingSubView = _props4 . getCascadingSubView ,
152- getCascadingMainView = _props4 . getCascadingMainView ,
153- location = _props4 . location ,
154- subData = _props4 . subData ,
155- subViewFetch = _props4 . subViewFetch ,
156- mainViewFetch = _props4 . mainViewFetch ,
157- fetchedSubView = _props4 . fetchedSubView ,
158- fetchedMainView = _props4 . fetchedMainView ;
143+ var _props3 = this . props ,
144+ getCascadingSubView = _props3 . getCascadingSubView ,
145+ getCascadingMainView = _props3 . getCascadingMainView ,
146+ location = _props3 . location ,
147+ subData = _props3 . subData ,
148+ subViewFetch = _props3 . subViewFetch ,
149+ mainViewFetch = _props3 . mainViewFetch ,
150+ fetchedSubView = _props3 . fetchedSubView ,
151+ fetchedMainView = _props3 . fetchedMainView ;
159152 var _state = this . state ,
160153 selectedGroup = _state . selectedGroup ,
161154 selectedMember = _state . selectedMember ;
162155
163156
164157 return _react2 . default . cloneElement ( child , {
165158 key : 2 ,
166- config : config ,
167159 groupData : selectedGroup ,
168160 memberData : selectedMember ,
169161 data : subData ,
@@ -180,22 +172,26 @@ var CascadingPane = function (_React$Component) {
180172 } , {
181173 key : 'render' ,
182174 value : function render ( ) {
183- var _props5 = this . props ,
184- className = _props5 . className ,
185- viewClassName = _props5 . viewClassName ,
186- splitClassName = _props5 . splitClassName ,
187- defaultSize = _props5 . defaultSize ,
188- children = _props5 . children ;
175+ var _props4 = this . props ,
176+ className = _props4 . className ,
177+ viewClassName = _props4 . viewClassName ,
178+ splitClassName = _props4 . splitClassName ,
179+ defaultSize = _props4 . defaultSize ,
180+ children = _props4 . children ;
189181 var selectedMember = this . state . selectedMember ;
190182
191183
192184 return _react2 . default . createElement (
193185 'div' ,
194- { className : ( 0 , _classnames2 . default ) ( className , 'cascading-pane cascading-pane-container' ) } ,
186+ {
187+ className : ( 0 , _classnames2 . default ) ( className , 'cascading-pane cascading-pane-container' )
188+ } ,
195189 this . renderNav ( children [ 0 ] ) ,
196190 Object . keys ( selectedMember ) . length === 0 ? _react2 . default . createElement (
197191 'div' ,
198- { className : ( 0 , _classnames2 . default ) ( viewClassName , 'cascading-pane-view' ) } ,
192+ {
193+ className : ( 0 , _classnames2 . default ) ( viewClassName , 'cascading-pane-view' )
194+ } ,
199195 this . renderMainView ( children [ 1 ] )
200196 ) : _react2 . default . createElement (
201197 _reactSplitPane2 . default ,
@@ -221,9 +217,6 @@ CascadingPane.MainView = _CascadingPaneMainView2.default;
221217CascadingPane . SubView = _CascadingPaneSubView2 . default ;
222218
223219CascadingPane . propTypes = {
224- config : _propTypes2 . default . shape ( {
225- APP_ID : _propTypes2 . default . string
226- } ) . isRequired ,
227220 location : _propTypes2 . default . object ,
228221 className : _propTypes2 . default . string ,
229222 viewClassName : _propTypes2 . default . string ,
0 commit comments