Pass real client to sidebar extension factory functions
Summary: This allows sidebar extensions to have more information as to whether they should be enabled or not Reviewed By: danielbuechele Differential Revision: D12930405 fbshipit-source-id: 649d3f01da1c535f7d60b7b525b012a888ea78e0
This commit is contained in:
committed by
Facebook Github Bot
parent
3c3ef35bce
commit
21a18d3e53
@@ -1066,6 +1066,7 @@ export default class Layout extends FlipperPlugin<InspectorState> {
|
||||
tooltips={this.getAccessibilityTooltips()}
|
||||
onValueChanged={this.onDataValueChanged}
|
||||
client={this.client}
|
||||
realClient={this.realClient}
|
||||
logger={this.props.logger}
|
||||
/>
|
||||
)
|
||||
@@ -1078,6 +1079,7 @@ export default class Layout extends FlipperPlugin<InspectorState> {
|
||||
element={this.state.elements[this.state.selected]}
|
||||
onValueChanged={this.onDataValueChanged}
|
||||
client={this.client}
|
||||
realClient={this.realClient}
|
||||
logger={this.props.logger}
|
||||
extensions={SidebarExtensions}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user