From 228b4ac9a4d6b2fe77c6a4b28a3847a540b594ac Mon Sep 17 00:00:00 2001 From: Ihor Dykhta Date: Mon, 26 Sep 2022 23:07:12 +0300 Subject: [PATCH] minor changes --- src/components/src/editor/editor.tsx | 1 + src/components/src/kepler-gl.tsx | 4 +--- src/components/src/side-panel.tsx | 4 +--- src/components/src/side-panel/layer-manager.tsx | 5 +---- .../src/side-panel/layer-panel/dataset-section.tsx | 6 ++---- src/components/src/types.ts | 1 - 6 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/components/src/editor/editor.tsx b/src/components/src/editor/editor.tsx index c4f61610ac..ab1fc290a3 100644 --- a/src/components/src/editor/editor.tsx +++ b/src/components/src/editor/editor.tsx @@ -228,5 +228,6 @@ export default function EditorFactory( } const Editor = (React.memo(EditorUnmemoized) as unknown) as typeof EditorUnmemoized; + Editor.displayName = 'Editor'; return Editor; } diff --git a/src/components/src/kepler-gl.tsx b/src/components/src/kepler-gl.tsx index 84adbea031..e163e65f11 100644 --- a/src/components/src/kepler-gl.tsx +++ b/src/components/src/kepler-gl.tsx @@ -482,9 +482,7 @@ function KeplerGlFactory( ref={this.root} > - {!uiState.readOnly && !readOnly && ( - - )} + {!uiState.readOnly && !readOnly && } {mapContainers} {isExportingImage && } {interactionConfig.geocoder.enabled && } diff --git a/src/components/src/side-panel.tsx b/src/components/src/side-panel.tsx index e61d98d05f..c01c117b24 100644 --- a/src/components/src/side-panel.tsx +++ b/src/components/src/side-panel.tsx @@ -137,8 +137,7 @@ export default function SidePanelFactory( uiStateActions, visStateActions, version, - width, - showDataCatalog + width } = props; const {openDeleteModal, toggleModal, toggleSidePanel} = uiStateActions; const {activeSidePanel} = uiState; @@ -249,7 +248,6 @@ export default function SidePanelFactory( visStateActions={visStateActions} panelMetadata={currentPanel} layerPanelListView={currentPanel?.id === 'layer' && uiState.layerPanelListView} - showDataCatalog={showDataCatalog} /> ) : null} diff --git a/src/components/src/side-panel/layer-manager.tsx b/src/components/src/side-panel/layer-manager.tsx index c6d0aec3e8..9bf7cf13de 100644 --- a/src/components/src/side-panel/layer-manager.tsx +++ b/src/components/src/side-panel/layer-manager.tsx @@ -52,7 +52,6 @@ type LayerManagerProps = { layerOrder: number[]; layerClasses: LayerClassesType; layerBlending: string; - showDataCatalog: boolean; uiStateActions: typeof UIStateActions; visStateActions: typeof VisStateActions; showAddDataModal: () => void; @@ -146,8 +145,7 @@ function LayerManagerFactory( uiStateActions, visStateActions, layerPanelListView, - panelMetadata, - showDataCatalog + panelMetadata } = this.props; const defaultDataset = Object.keys(datasets)[0]; @@ -170,7 +168,6 @@ function LayerManagerFactory( showDatasetList={!isSortByDatasetMode} showAddDataModal={showAddDataModal} defaultDataset={defaultDataset} - showDataCatalog={showDataCatalog} /> diff --git a/src/components/src/side-panel/layer-panel/dataset-section.tsx b/src/components/src/side-panel/layer-panel/dataset-section.tsx index 7d01fe80d6..a287aac55a 100644 --- a/src/components/src/side-panel/layer-panel/dataset-section.tsx +++ b/src/components/src/side-panel/layer-panel/dataset-section.tsx @@ -38,7 +38,6 @@ type DatasetSectionProps = { defaultDataset: string; showDatasetList: boolean; showDeleteDataset: boolean; - showDataCatalog: boolean; showDatasetTable: ActionHandler; updateTableColor: ActionHandler; removeDataset: ActionHandler; @@ -95,8 +94,7 @@ function DatasetSectionFactory( removeDataset, showDatasetList, showAddDataModal, - defaultDataset, - showDataCatalog + defaultDataset } = props; const datasetCount = Object.keys(datasets).length; @@ -106,7 +104,7 @@ function DatasetSectionFactory( Datasets ({datasetCount}) - {showDatasetList && showDataCatalog && ( + {showDatasetList && (