Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
igorDykhta committed Sep 26, 2022
1 parent 8f56497 commit 228b4ac
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/components/src/editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,6 @@ export default function EditorFactory(
}

const Editor = (React.memo(EditorUnmemoized) as unknown) as typeof EditorUnmemoized;
Editor.displayName = 'Editor';
return Editor;
}
4 changes: 1 addition & 3 deletions src/components/src/kepler-gl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,7 @@ function KeplerGlFactory(
ref={this.root}
>
<NotificationPanel {...notificationPanelFields} />
{!uiState.readOnly && !readOnly && (
<SidePanel {...sideFields} showDataCatalog={true} />
)}
{!uiState.readOnly && !readOnly && <SidePanel {...sideFields} />}
<MapsLayout className="maps">{mapContainers}</MapsLayout>
{isExportingImage && <PlotContainer {...plotContainerFields} />}
{interactionConfig.geocoder.enabled && <GeoCoderPanel {...geoCoderPanelFields} />}
Expand Down
4 changes: 1 addition & 3 deletions src/components/src/side-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ export default function SidePanelFactory(
uiStateActions,
visStateActions,
version,
width,
showDataCatalog
width
} = props;
const {openDeleteModal, toggleModal, toggleSidePanel} = uiStateActions;
const {activeSidePanel} = uiState;
Expand Down Expand Up @@ -249,7 +248,6 @@ export default function SidePanelFactory(
visStateActions={visStateActions}
panelMetadata={currentPanel}
layerPanelListView={currentPanel?.id === 'layer' && uiState.layerPanelListView}
showDataCatalog={showDataCatalog}
/>
) : null}
<CustomPanels {...customPanelProps} activeSidePanel={activeSidePanel} />
Expand Down
5 changes: 1 addition & 4 deletions src/components/src/side-panel/layer-manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ type LayerManagerProps = {
layerOrder: number[];
layerClasses: LayerClassesType;
layerBlending: string;
showDataCatalog: boolean;
uiStateActions: typeof UIStateActions;
visStateActions: typeof VisStateActions;
showAddDataModal: () => void;
Expand Down Expand Up @@ -146,8 +145,7 @@ function LayerManagerFactory(
uiStateActions,
visStateActions,
layerPanelListView,
panelMetadata,
showDataCatalog
panelMetadata
} = this.props;

const defaultDataset = Object.keys(datasets)[0];
Expand All @@ -170,7 +168,6 @@ function LayerManagerFactory(
showDatasetList={!isSortByDatasetMode}
showAddDataModal={showAddDataModal}
defaultDataset={defaultDataset}
showDataCatalog={showDataCatalog}
/>
<SidePanelDivider />
<SidePanelSection>
Expand Down
6 changes: 2 additions & 4 deletions src/components/src/side-panel/layer-panel/dataset-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type DatasetSectionProps = {
defaultDataset: string;
showDatasetList: boolean;
showDeleteDataset: boolean;
showDataCatalog: boolean;
showDatasetTable: ActionHandler<typeof VisStateActions.showDatasetTable>;
updateTableColor: ActionHandler<typeof VisStateActions.updateTableColor>;
removeDataset: ActionHandler<typeof UIStateActions.openDeleteModal>;
Expand Down Expand Up @@ -95,8 +94,7 @@ function DatasetSectionFactory(
removeDataset,
showDatasetList,
showAddDataModal,
defaultDataset,
showDataCatalog
defaultDataset
} = props;
const datasetCount = Object.keys(datasets).length;

Expand All @@ -106,7 +104,7 @@ function DatasetSectionFactory(
<span>Datasets ({datasetCount})</span>
<AddDataButton onClick={showAddDataModal} isInactive={!defaultDataset} />
</StyledDatasetTitle>
{showDatasetList && showDataCatalog && (
{showDatasetList && (
<SourceDataCatalog
datasets={datasets}
showDatasetTable={showDatasetTable}
Expand Down
1 change: 0 additions & 1 deletion src/components/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ export type SidePanelProps = {
mapSaved?: string | null;
panels: SidePanelItem[];
version: string;
showDataCatalog: boolean;
};

0 comments on commit 228b4ac

Please sign in to comment.