From 5b535f86580275eda768fa2d85a8c94bd701f832 Mon Sep 17 00:00:00 2001 From: Luca <102960244+Luca-Timo@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:30:29 +0200 Subject: [PATCH] fix(settings): remove duplicate Mail import that broke the dev server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SettingsPage.tsx imported `Mail` from lucide-react twice — in the main icon block (line 20) and again in a later import (line 58). The @vitejs/plugin-react babel transform rejects the duplicate with "Identifier 'Mail' has already been declared", so `npm run dev` crashed when the module loaded. The production `vite build` (esbuild) silently dedupes it, which is why CI/Docker builds passed and it went unnoticed. The two imports overlap only on `Mail`; drop it from line 58, keeping that line's six unique icons (Briefcase, Receipt, ScrollText, Landmark, Smartphone, MonitorPlay). Verified: single Mail import remains, prod build passes, and the vite dev transform of SettingsPage now returns 200 with no "already been declared" error. --- frontend/src/pages/admin/SettingsPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/admin/SettingsPage.tsx b/frontend/src/pages/admin/SettingsPage.tsx index ce8786a0..7c5ecd71 100644 --- a/frontend/src/pages/admin/SettingsPage.tsx +++ b/frontend/src/pages/admin/SettingsPage.tsx @@ -55,7 +55,7 @@ import { CrmSettingsPage } from './settings/CrmSettingsPage'; import { ReminderTemplatesPage } from './settings/ReminderTemplatesPage'; import { BlockLibraryPage } from './contracts/BlockLibraryPage'; import { useFeatureFlags } from '../../contexts/FeatureFlagsContext'; -import { Briefcase, Receipt, ScrollText, Mail, Landmark, Smartphone, MonitorPlay } from 'lucide-react'; +import { Briefcase, Receipt, ScrollText, Landmark, Smartphone, MonitorPlay } from 'lucide-react'; // Tab keys driving the inner-nav. Must include every key used in // `navGroups` below and in the switch at the bottom of the component.