diff --git a/frontend/hospital-portal/src/layouts/dashboard/header/LanguagePopover.tsx b/frontend/hospital-portal/src/layouts/dashboard/header/LanguagePopover.tsx index 33a932c7..581f93ee 100644 --- a/frontend/hospital-portal/src/layouts/dashboard/header/LanguagePopover.tsx +++ b/frontend/hospital-portal/src/layouts/dashboard/header/LanguagePopover.tsx @@ -53,7 +53,23 @@ export default function LanguagePopover() { ...(open && { bgcolor: 'action.selected' }), }} > - {!localStorage.getItem('currentLocale') + { diff --git a/frontend/hospital-portal/vite.config.ts b/frontend/hospital-portal/vite.config.ts index e417f3e9..ec18a01f 100644 --- a/frontend/hospital-portal/vite.config.ts +++ b/frontend/hospital-portal/vite.config.ts @@ -10,6 +10,14 @@ export default defineConfig({ // comment this out if that isn't relevant for your project build: { outDir: 'build', + chunkSizeWarningLimit: 100, + rollupOptions: { + onwarn(warning, warn) { + if (warning.code === 'MODULE_LEVEL_DIRECTIVE') { + return + } + warn(warning) + }} }, plugins: [ react(),