Deep-linking records to other strong records in the Store tab

Summary: All strong records with a matching record available in the store tab are underlined. When clicked on, it will direct the user to the corresponding store record.

Reviewed By: jonathoma

Differential Revision: D22622612

fbshipit-source-id: 537dbb282e4ae1ff695c577ab47c413d41a10fa4
This commit is contained in:
Elaina Hsu
2020-07-23 09:13:31 -07:00
committed by Facebook GitHub Bot
parent 7d06571cfa
commit 9e4c5363c5
2 changed files with 15 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ export type ManagedDataInspectorProps = {
name: string,
highlighter: HighlightManager,
) => React.ReactElement;
/**
* Render callback that can be used to customize the rendering of object values.
*/
onRenderDescription?: (description: React.ReactElement) => React.ReactElement;
/**
* Whether all objects and arrays should be collapsed by default.
*/
@@ -179,6 +183,7 @@ export default class ManagedDataInspector extends PureComponent<
onExpanded={this.onExpanded}
onDelete={this.props.onDelete}
onRenderName={this.props.onRenderName}
onRenderDescription={this.props.onRenderDescription}
expandRoot={this.props.expandRoot}
collapsed={this.props.filter ? true : this.props.collapsed}
tooltips={this.props.tooltips}