From 3cac4f73610286acd59f65a9ddbdf85c8d0adc8c Mon Sep 17 00:00:00 2001 From: ajnart Date: Fri, 2 Sep 2022 15:22:10 +0200 Subject: [PATCH] :bug: Fix compilation issues --- package.json | 1 - src/components/AppShelf/AddAppShelfItem.tsx | 1 - src/components/AppShelf/AppShelfMenu.tsx | 8 +++++++- src/components/Settings/LanguageSwitch.tsx | 11 +++++------ src/modules/docker/DockerTable.tsx | 3 --- src/{languages => tools}/language.ts | 16 ++++++++++++++-- yarn.lock | 8 -------- 7 files changed, 26 insertions(+), 22 deletions(-) rename src/{languages => tools}/language.ts (79%) diff --git a/package.json b/package.json index d3519c067..36aa236fd 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "axios": "^0.27.2", "consola": "^2.15.3", "cookies-next": "^2.1.1", - "country-flag-icons": "^1.5.5", "dayjs": "^1.11.5", "dockerode": "^3.3.2", "embla-carousel-react": "^7.0.0", diff --git a/src/components/AppShelf/AddAppShelfItem.tsx b/src/components/AppShelf/AddAppShelfItem.tsx index d6db7ac07..a72d0d9c1 100644 --- a/src/components/AppShelf/AddAppShelfItem.tsx +++ b/src/components/AppShelf/AddAppShelfItem.tsx @@ -210,7 +210,6 @@ export function AddAppShelfItemForm(props: AddAppShelfItemFormProps) { }), }); } else { - console.log(newForm); setConfig({ ...config, services: [...config.services, newForm], diff --git a/src/components/AppShelf/AppShelfMenu.tsx b/src/components/AppShelf/AppShelfMenu.tsx index 750a89227..402867ac0 100644 --- a/src/components/AppShelf/AppShelfMenu.tsx +++ b/src/components/AppShelf/AppShelfMenu.tsx @@ -23,7 +23,13 @@ export default function AppShelfMenu(props: any) { onClose={() => setOpened(false)} title={t('modal.title')} > - + ({ value: localeItem, label: getLanguageByCode(localeItem).originalName, - icon: getUnicodeFlagIcon(localeItem), + icon: getLanguageByCode(localeItem).emoji, language: getLanguageByCode(localeItem), })) : []; @@ -59,7 +58,7 @@ export default function LanguageSwitch() { return (