From 75f2cbb261404122598a27ae229174266444577d Mon Sep 17 00:00:00 2001 From: Paula Stachova Date: Fri, 12 Jul 2024 14:00:39 +0200 Subject: [PATCH] rename files and cleanup --- .../src/components/export-modal.tsx | 2 +- .../src/components/import-modal.tsx | 2 +- .../{use-export.spec.ts => use-export-connections.spec.ts} | 0 .../src/hooks/{use-export.ts => use-export-connections.ts} | 0 .../{use-import.spec.ts => use-import-connections.spec.ts} | 0 .../src/hooks/{use-import.ts => use-import-connections.ts} | 0 packages/compass-telemetry/src/generic-track.ts | 1 - 7 files changed, 2 insertions(+), 3 deletions(-) rename packages/compass-connection-import-export/src/hooks/{use-export.spec.ts => use-export-connections.spec.ts} (100%) rename packages/compass-connection-import-export/src/hooks/{use-export.ts => use-export-connections.ts} (100%) rename packages/compass-connection-import-export/src/hooks/{use-import.spec.ts => use-import-connections.spec.ts} (100%) rename packages/compass-connection-import-export/src/hooks/{use-import.ts => use-import-connections.ts} (100%) diff --git a/packages/compass-connection-import-export/src/components/export-modal.tsx b/packages/compass-connection-import-export/src/components/export-modal.tsx index 18d8b3a99a5..10837f26b3b 100644 --- a/packages/compass-connection-import-export/src/components/export-modal.tsx +++ b/packages/compass-connection-import-export/src/components/export-modal.tsx @@ -12,7 +12,7 @@ import { Passphrase } from './passphrase'; import { SelectTable } from './select-table'; import type { ImportExportResult } from '../hooks/common'; import { useOpenModalThroughIpc } from '../hooks/common'; -import { useExportConnections } from '../hooks/use-export'; +import { useExportConnections } from '../hooks/use-export-connections'; import { usePreference } from 'compass-preferences-model/provider'; const TOAST_TIMEOUT_MS = 5000; diff --git a/packages/compass-connection-import-export/src/components/import-modal.tsx b/packages/compass-connection-import-export/src/components/import-modal.tsx index 07583e4c810..c096d12c5cd 100644 --- a/packages/compass-connection-import-export/src/components/import-modal.tsx +++ b/packages/compass-connection-import-export/src/components/import-modal.tsx @@ -13,7 +13,7 @@ import { Passphrase } from './passphrase'; import { SelectTable } from './select-table'; import type { ImportExportResult } from '../hooks/common'; import { useOpenModalThroughIpc } from '../hooks/common'; -import { useImportConnections } from '../hooks/use-import'; +import { useImportConnections } from '../hooks/use-import-connections'; import { usePreference } from 'compass-preferences-model/provider'; const TOAST_TIMEOUT_MS = 5000; diff --git a/packages/compass-connection-import-export/src/hooks/use-export.spec.ts b/packages/compass-connection-import-export/src/hooks/use-export-connections.spec.ts similarity index 100% rename from packages/compass-connection-import-export/src/hooks/use-export.spec.ts rename to packages/compass-connection-import-export/src/hooks/use-export-connections.spec.ts diff --git a/packages/compass-connection-import-export/src/hooks/use-export.ts b/packages/compass-connection-import-export/src/hooks/use-export-connections.ts similarity index 100% rename from packages/compass-connection-import-export/src/hooks/use-export.ts rename to packages/compass-connection-import-export/src/hooks/use-export-connections.ts diff --git a/packages/compass-connection-import-export/src/hooks/use-import.spec.ts b/packages/compass-connection-import-export/src/hooks/use-import-connections.spec.ts similarity index 100% rename from packages/compass-connection-import-export/src/hooks/use-import.spec.ts rename to packages/compass-connection-import-export/src/hooks/use-import-connections.spec.ts diff --git a/packages/compass-connection-import-export/src/hooks/use-import.ts b/packages/compass-connection-import-export/src/hooks/use-import-connections.ts similarity index 100% rename from packages/compass-connection-import-export/src/hooks/use-import.ts rename to packages/compass-connection-import-export/src/hooks/use-import-connections.ts diff --git a/packages/compass-telemetry/src/generic-track.ts b/packages/compass-telemetry/src/generic-track.ts index 357cf1ecada..28e003d5ea9 100644 --- a/packages/compass-telemetry/src/generic-track.ts +++ b/packages/compass-telemetry/src/generic-track.ts @@ -62,7 +62,6 @@ export const createTrack = ({ parameters.connection_id = connectionInfo.id; } - console.log('TRACK', event, parameters); sendTrack(event, parameters || {}); };