From cf9309b039b60d26f369c750f68e641a04c2fb94 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Thu, 18 Jun 2020 11:03:08 -0700 Subject: [PATCH] Remove ManagedDataInspector constructor Summary: The constructor that accepts `context` is deprecated and in turn causes `React.ComponentProps` and other type signatures to fail. Reviewed By: mweststrate Differential Revision: D22111964 fbshipit-source-id: 71553d749d0d7de6ef34350faa55d04433a639d1 --- .../data-inspector/ManagedDataInspector.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/desktop/app/src/ui/components/data-inspector/ManagedDataInspector.tsx b/desktop/app/src/ui/components/data-inspector/ManagedDataInspector.tsx index 4fc1c5ca3..b35d45025 100644 --- a/desktop/app/src/ui/components/data-inspector/ManagedDataInspector.tsx +++ b/desktop/app/src/ui/components/data-inspector/ManagedDataInspector.tsx @@ -75,15 +75,12 @@ export default class ManagedDataInspector extends PureComponent< ManagedDataInspectorProps, ManagedDataInspectorState > { - constructor(props: ManagedDataInspectorProps, context: Object) { - super(props, context); - this.state = { - expanded: {}, - userExpanded: {}, - filterExpanded: {}, - filter: '', - }; - } + state = { + expanded: {}, + userExpanded: {}, + filterExpanded: {}, + filter: '', + }; static getDerivedStateFromProps( nextProps: ManagedDataInspectorProps,