From 0a214723cb0284102c78d9d022cc308de0c414f9 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 31 Jul 2023 11:32:25 +0700 Subject: [PATCH] Update hospital-portal --- .../dashboard/header/LanguagePopover.tsx | 18 +++++++++++++++++- frontend/hospital-portal/vite.config.ts | 8 ++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) 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(),