Pass system to OperationContainer through getComponent
This commit is contained in:
@@ -126,17 +126,6 @@ export default class Operations extends React.Component {
|
|||||||
path={path}
|
path={path}
|
||||||
method={method}
|
method={method}
|
||||||
tag={tag}
|
tag={tag}
|
||||||
|
|
||||||
specActions={ specActions }
|
|
||||||
specSelectors={ specSelectors }
|
|
||||||
oas3Actions={oas3Actions}
|
|
||||||
layoutActions={ layoutActions }
|
|
||||||
layoutSelectors={ layoutSelectors }
|
|
||||||
authActions={ authActions }
|
|
||||||
authSelectors={ authSelectors }
|
|
||||||
getComponent={ getComponent }
|
|
||||||
fn={fn}
|
|
||||||
getConfigs={ getConfigs }
|
|
||||||
/>
|
/>
|
||||||
}).toArray()
|
}).toArray()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export default class OperationContainer extends PureComponent {
|
|||||||
specActions.changeConsumesValue([path, method], consumesValue)
|
specActions.changeConsumesValue([path, method], consumesValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
shouldComponentUpdate(nextProps, nextState) {
|
shouldComponentUpdate(nextProps, nextState) {
|
||||||
const render = this.state.tryItOutEnabled !== nextState.tryItOutEnabled
|
const render = this.state.tryItOutEnabled !== nextState.tryItOutEnabled
|
||||||
|| this.state.executeInProgress !== nextState.executeInProgress
|
|| this.state.executeInProgress !== nextState.executeInProgress
|
||||||
@@ -161,7 +161,8 @@ export default class OperationContainer extends PureComponent {
|
|||||||
layoutActions,
|
layoutActions,
|
||||||
authActions,
|
authActions,
|
||||||
authSelectors,
|
authSelectors,
|
||||||
fn
|
oas3Actions,
|
||||||
|
fn
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
const Operation = getComponent( "operation" )
|
const Operation = getComponent( "operation" )
|
||||||
@@ -198,6 +199,7 @@ export default class OperationContainer extends PureComponent {
|
|||||||
|
|
||||||
specActions={ specActions }
|
specActions={ specActions }
|
||||||
specSelectors={ specSelectors }
|
specSelectors={ specSelectors }
|
||||||
|
oas3Actions={oas3Actions}
|
||||||
layoutActions={ layoutActions }
|
layoutActions={ layoutActions }
|
||||||
layoutSelectors={ layoutSelectors }
|
layoutSelectors={ layoutSelectors }
|
||||||
authActions={ authActions }
|
authActions={ authActions }
|
||||||
|
|||||||
Reference in New Issue
Block a user