Remove unused prop
Summary: While reading through the Inspector I found this prop passed down and not used anywhere printer_shredder Reviewed By: Katalune Differential Revision: D22431895 fbshipit-source-id: 6cbc97b3faec26349a1ad900ffa455e95f53bb2b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
79997f2b38
commit
29b6be23e8
@@ -61,7 +61,6 @@ export type ElementsInspectorProps = {
|
||||
| ((key: ElementID | undefined | null) => any)
|
||||
| undefined
|
||||
| null;
|
||||
onValueChanged: ((path: Array<string>, val: any) => any) | undefined | null;
|
||||
selected: ElementID | undefined | null;
|
||||
focused?: ElementID | undefined | null;
|
||||
searchResults?: ElementSearchResultSet | undefined | null;
|
||||
|
||||
@@ -48,7 +48,6 @@ type Props = {
|
||||
selectedElement: ElementID | null | undefined;
|
||||
selectedAXElement: ElementID | null | undefined;
|
||||
onSelect: (ids: ElementID | null | undefined) => void;
|
||||
onDataValueChanged: (path: Array<string>, value: any) => void;
|
||||
setPersistedState: (state: Partial<PersistedState>) => void;
|
||||
persistedState: PersistedState;
|
||||
searchResults: ElementSearchResultSet | null;
|
||||
@@ -443,7 +442,6 @@ export default class Inspector extends Component<Props, State> {
|
||||
onElementSelected={this.onElementSelectedAtMainSection}
|
||||
onElementHovered={this.onElementHovered}
|
||||
onElementExpanded={this.onElementExpanded}
|
||||
onValueChanged={this.props.onDataValueChanged}
|
||||
searchResults={this.props.searchResults}
|
||||
selected={this.selected()}
|
||||
root={this.root()}
|
||||
|
||||
@@ -84,7 +84,6 @@ const MultipleSelectorSection: React.FC<MultipleSelectorSectionProps> = memo(
|
||||
}}
|
||||
onElementHovered={onElementHovered}
|
||||
onElementExpanded={() => {}}
|
||||
onValueChanged={null}
|
||||
root={null}
|
||||
selected={selectedId}
|
||||
elements={elements}
|
||||
|
||||
@@ -37,7 +37,6 @@ beforeEach(() => {
|
||||
selectedElement={null}
|
||||
selectedAXElement={null}
|
||||
onSelect={() => {}}
|
||||
onDataValueChanged={() => {}}
|
||||
setPersistedState={() => {}}
|
||||
persistedState={{
|
||||
rootElement: null,
|
||||
|
||||
@@ -344,7 +344,6 @@ export default class LayoutPlugin extends FlipperPlugin<
|
||||
selectedAXElement: this.state.selectedAXElement,
|
||||
setPersistedState: this.props.setPersistedState,
|
||||
persistedState: this.props.persistedState,
|
||||
onDataValueChanged: this.onDataValueChanged,
|
||||
searchResults: this.state.searchResults,
|
||||
};
|
||||
|
||||
|
||||
@@ -200,7 +200,6 @@ export default class LeakCanary<PersistedState> extends FlipperPlugin<
|
||||
onElementExpanded={(eid /*, deep*/) => {
|
||||
this._toggleElement(idx, eid);
|
||||
}}
|
||||
onValueChanged={() => {}}
|
||||
selected={selected}
|
||||
searchResults={null}
|
||||
root={leak.root}
|
||||
|
||||
Reference in New Issue
Block a user