|
@@ -29,6 +29,10 @@ type State = {
|
|
withAnnotatedText: boolean;
|
|
withAnnotatedText: boolean;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+function getValueWithAnnotatedText(v: Value, meta?: Meta) {
|
|
|
|
+ return <AnnotatedText value={v} meta={meta} />;
|
|
|
|
+}
|
|
|
|
+
|
|
class ContextData extends React.Component<Props, State> {
|
|
class ContextData extends React.Component<Props, State> {
|
|
static defaultProps = {
|
|
static defaultProps = {
|
|
data: null,
|
|
data: null,
|
|
@@ -40,11 +44,8 @@ class ContextData extends React.Component<Props, State> {
|
|
this.props;
|
|
this.props;
|
|
const maxDepth = maxDefaultDepth ?? 2;
|
|
const maxDepth = maxDefaultDepth ?? 2;
|
|
|
|
|
|
- function getValueWithAnnotatedText(v: Value, meta?: Meta) {
|
|
|
|
- return <AnnotatedText value={v} meta={meta} />;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /* eslint no-shadow:0 */
|
|
|
|
|
|
+ // TODO(eslint): Remove `no-shadow`
|
|
|
|
+ // eslint-disable-next-line no-shadow,@typescript-eslint/no-shadow
|
|
function walk(value: Value, depth: number) {
|
|
function walk(value: Value, depth: number) {
|
|
let i = 0;
|
|
let i = 0;
|
|
const children: React.ReactNode[] = [];
|
|
const children: React.ReactNode[] = [];
|