From f96f763f142c7d32a8ceceac9561e50f41eabcba Mon Sep 17 00:00:00 2001 From: Baptiste Poulain <64689165+bpoulaindev@users.noreply.github.com> Date: Wed, 20 Mar 2024 14:15:27 +0100 Subject: [PATCH] fix(enableTranslation): remove unused enableTranslation and useTranslation tokens (#1867) Co-authored-by: bpoulaindev --- packages/bruno-app/src/components/Sidebar/TitleBar/index.js | 2 +- packages/bruno-app/src/components/Welcome/index.js | 4 ++-- packages/bruno-electron/src/ipc/collection.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/TitleBar/index.js b/packages/bruno-app/src/components/Sidebar/TitleBar/index.js index 6f683a646..ebf8c608d 100644 --- a/packages/bruno-app/src/components/Sidebar/TitleBar/index.js +++ b/packages/bruno-app/src/components/Sidebar/TitleBar/index.js @@ -26,7 +26,7 @@ const TitleBar = () => { setImportCollectionLocationModalOpen(true); }; - const handleImportCollectionLocation = (collectionLocation, useTranslation) => { + const handleImportCollectionLocation = (collectionLocation) => { dispatch(importCollection(importedCollection, collectionLocation)); setImportCollectionLocationModalOpen(false); setImportedCollection(null); diff --git a/packages/bruno-app/src/components/Welcome/index.js b/packages/bruno-app/src/components/Welcome/index.js index 8969f6278..251d0a9fe 100644 --- a/packages/bruno-app/src/components/Welcome/index.js +++ b/packages/bruno-app/src/components/Welcome/index.js @@ -29,8 +29,8 @@ const Welcome = () => { setImportCollectionLocationModalOpen(true); }; - const handleImportCollectionLocation = (collectionLocation, enableTRanslation = true) => { - dispatch(importCollection(importedCollection, collectionLocation, enableTranslation)); + const handleImportCollectionLocation = (collectionLocation) => { + dispatch(importCollection(importedCollection, collectionLocation)); setImportCollectionLocationModalOpen(false); setImportedCollection(null); toast.success('Collection imported successfully'); diff --git a/packages/bruno-electron/src/ipc/collection.js b/packages/bruno-electron/src/ipc/collection.js index aed984849..ae47d6e06 100644 --- a/packages/bruno-electron/src/ipc/collection.js +++ b/packages/bruno-electron/src/ipc/collection.js @@ -403,7 +403,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection } }); - ipcMain.handle('renderer:import-collection', async (event, collection, collectionLocation, enableTranslation) => { + ipcMain.handle('renderer:import-collection', async (event, collection, collectionLocation) => { try { let collectionName = sanitizeDirectoryName(collection.name); let collectionPath = path.join(collectionLocation, collectionName);