From 14102de67370ecc8afa37366811deac4342cc062 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 8 May 2025 21:35:18 -0400 Subject: [PATCH] refactor --- app/components/Sidebar/Settings.tsx | 2 +- app/hooks/useSettingsConfig.ts | 1 - shared/i18n/locales/en_US/translation.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/Sidebar/Settings.tsx b/app/components/Sidebar/Settings.tsx index 30aed3f807..cf2135f5f0 100644 --- a/app/components/Sidebar/Settings.tsx +++ b/app/components/Sidebar/Settings.tsx @@ -30,7 +30,7 @@ function SettingsSidebar() { let configs = useSettingsConfig(); configs = configs.filter((item) => - item.group === t("Integrations") ? item.isActive : true + "isActive" in item ? item.isActive : true ); const groupedConfig = groupBy(configs, "group"); diff --git a/app/hooks/useSettingsConfig.ts b/app/hooks/useSettingsConfig.ts index b5e90b25a3..9d2942e648 100644 --- a/app/hooks/useSettingsConfig.ts +++ b/app/hooks/useSettingsConfig.ts @@ -200,7 +200,6 @@ const useSettingsConfig = () => { enabled: true, group: t("Integrations"), icon: PlusIcon, - isActive: true, }, ]; diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 0b2eb1c280..376e9f8bd9 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -389,7 +389,6 @@ "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "{{ documentName }} cannot be moved within {{ parentDocumentName }}", "You can't reorder documents in an alphabetically sorted collection": "You can't reorder documents in an alphabetically sorted collection", "The {{ documentName }} cannot be moved here": "The {{ documentName }} cannot be moved here", - "Integrations": "Integrations", "Return to App": "Back to App", "Installation": "Installation", "Unstar document": "Unstar document", @@ -521,6 +520,7 @@ "Groups": "Groups", "Shared Links": "Shared Links", "Import": "Import", + "Integrations": "Integrations", "Install": "Install", "Revoke token": "Revoke token", "Revoke": "Revoke",