fix(settings): remove duplicate Mail import that broke the dev server
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.
This commit is contained in:
@@ -55,7 +55,7 @@ import { CrmSettingsPage } from './settings/CrmSettingsPage';
|
|||||||
import { ReminderTemplatesPage } from './settings/ReminderTemplatesPage';
|
import { ReminderTemplatesPage } from './settings/ReminderTemplatesPage';
|
||||||
import { BlockLibraryPage } from './contracts/BlockLibraryPage';
|
import { BlockLibraryPage } from './contracts/BlockLibraryPage';
|
||||||
import { useFeatureFlags } from '../../contexts/FeatureFlagsContext';
|
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
|
// Tab keys driving the inner-nav. Must include every key used in
|
||||||
// `navGroups` below and in the switch at the bottom of the component.
|
// `navGroups` below and in the switch at the bottom of the component.
|
||||||
|
|||||||
Reference in New Issue
Block a user