diff --git a/crabfit-frontend/public/i18n/de/common.json b/crabfit-frontend/public/i18n/de/common.json index 7b4a05b..f767498 100644 --- a/crabfit-frontend/public/i18n/de/common.json +++ b/crabfit-frontend/public/i18n/de/common.json @@ -55,14 +55,6 @@ "label": "Sprache" } }, - "update": { - "heading": "Crab Fit wurde aktualisiert", - "body": "Eine neue Version von Crab Fit ist verfügbar, die Updates, Fixes und neue Funktionen enthält.", - "buttons": { - "close": "Entlassen", - "reload": "Neu laden" - } - }, "video": { "title": "Crab Fit Promo Video", "button": "Unser Video" diff --git a/crabfit-frontend/public/i18n/en-GB/common.json b/crabfit-frontend/public/i18n/en-GB/common.json index 4012234..27bfa42 100644 --- a/crabfit-frontend/public/i18n/en-GB/common.json +++ b/crabfit-frontend/public/i18n/en-GB/common.json @@ -54,13 +54,5 @@ "language": { "label": "Language" } - }, - "update": { - "heading": "Crab Fit has been updated", - "body": "A new version of Crab Fit is available, which includes updates, fixes, and new features.", - "buttons": { - "close": "Close", - "reload": "Reload" - } } } diff --git a/crabfit-frontend/public/i18n/en/common.json b/crabfit-frontend/public/i18n/en/common.json index 367fd74..3081de2 100644 --- a/crabfit-frontend/public/i18n/en/common.json +++ b/crabfit-frontend/public/i18n/en/common.json @@ -55,14 +55,6 @@ "label": "Language" } }, - "update": { - "heading": "Crab Fit has been updated", - "body": "A new version of Crab Fit is available, which includes updates, fixes, and new features.", - "buttons": { - "close": "Close", - "reload": "Reload" - } - }, "video": { "title": "Crab Fit Promotional Video", "button": "Watch the video" diff --git a/crabfit-frontend/public/i18n/es/common.json b/crabfit-frontend/public/i18n/es/common.json index a78be99..87e4a1d 100644 --- a/crabfit-frontend/public/i18n/es/common.json +++ b/crabfit-frontend/public/i18n/es/common.json @@ -54,13 +54,5 @@ "language": { "label": "Idioma" } - }, - "update": { - "heading": "Se ha actualizado Crab Fit", - "body": "Está disponible una nueva versión de Crab Fit, que incluye actualizaciones, correcciones y nuevas funciones.", - "buttons": { - "close": "Cerca", - "reload": "Recargar" - } } } diff --git a/crabfit-frontend/public/i18n/fr/common.json b/crabfit-frontend/public/i18n/fr/common.json index 83f918d..5beb4aa 100644 --- a/crabfit-frontend/public/i18n/fr/common.json +++ b/crabfit-frontend/public/i18n/fr/common.json @@ -55,14 +55,6 @@ "label": "Langue" } }, - "update": { - "heading": "Crab Fit a été mis à jour", - "body": "Une nouvelle version de Crab Fit est disponible, qui comprend des mises à jour, des correctifs et de nouvelles fonctionnalités.", - "buttons": { - "close": "Fermer", - "reload": "Recharger" - } - }, "video": { "title": "Vidéo promotionnelle de Crab Fit", "button": "Regarder la vidéo" diff --git a/crabfit-frontend/public/i18n/hi/common.json b/crabfit-frontend/public/i18n/hi/common.json index ff565fb..5119a2c 100644 --- a/crabfit-frontend/public/i18n/hi/common.json +++ b/crabfit-frontend/public/i18n/hi/common.json @@ -54,13 +54,5 @@ "language": { "label": "भाषा" } - }, - "update": { - "heading": "एक अपडेट है", - "body": "एक नया संस्करण उपलब्ध है, जिसमें अपडेट, सुधार और नई सुविधाएं शामिल हैं।", - "buttons": { - "close": "खारिज", - "reload": "पुनः लोड करें" - } } } diff --git a/crabfit-frontend/public/i18n/id/common.json b/crabfit-frontend/public/i18n/id/common.json index 8623dc9..a5d31ce 100644 --- a/crabfit-frontend/public/i18n/id/common.json +++ b/crabfit-frontend/public/i18n/id/common.json @@ -54,13 +54,5 @@ "language": { "label": "Bahasa" } - }, - "update": { - "heading": "Crab Fit telah diperbarui", - "body": "Versi baru Crab Fit tersedia, yang mencakup pembaruan, perbaikan, dan fitur baru.", - "buttons": { - "close": "Menutup", - "reload": "Muat ulang" - } } } diff --git a/crabfit-frontend/public/i18n/ja/common.json b/crabfit-frontend/public/i18n/ja/common.json index ec5c28f..74b14b9 100644 --- a/crabfit-frontend/public/i18n/ja/common.json +++ b/crabfit-frontend/public/i18n/ja/common.json @@ -54,13 +54,5 @@ "language": { "label": "言語" } - }, - "update": { - "heading": "Crab Fit が更新されました", - "body": "新しいバージョンの Crab Fit を利用できます。不具合の修正や新機能の追加などが行われています。", - "buttons": { - "close": "閉じる", - "reload": "再読込" - } } } diff --git a/crabfit-frontend/public/i18n/ko/common.json b/crabfit-frontend/public/i18n/ko/common.json index cedfca7..8c97f1d 100644 --- a/crabfit-frontend/public/i18n/ko/common.json +++ b/crabfit-frontend/public/i18n/ko/common.json @@ -54,13 +54,5 @@ "language": { "label": "언어" } - }, - "update": { - "heading": "새 업데이트가 있습니다", - "body": "업데이트, 수정 및 새 기능이 포함된 새 버전을 사용할 수 있습니다.", - "buttons": { - "close": "닫다", - "reload": "다시 로드합니다" - } } } diff --git a/crabfit-frontend/public/i18n/pl/common.json b/crabfit-frontend/public/i18n/pl/common.json index 098960c..a961748 100644 --- a/crabfit-frontend/public/i18n/pl/common.json +++ b/crabfit-frontend/public/i18n/pl/common.json @@ -55,14 +55,6 @@ "label": "Język" } }, - "update": { - "heading": "Crab Fit został zaktualizowany", - "body": "Nowa wersja Crab Fita jest dostępna, która zawiera aktualizacje, poprawki oraz nowe funkcje.", - "buttons": { - "close": "Zamknij", - "reload": "Przeładuj" - } - }, "video": { "title": "Promocyjne wideo Crab Fita", "button": "Obejrzyj wideo" diff --git a/crabfit-frontend/public/i18n/pt-BR/common.json b/crabfit-frontend/public/i18n/pt-BR/common.json index 2d7671d..7be4fb3 100644 --- a/crabfit-frontend/public/i18n/pt-BR/common.json +++ b/crabfit-frontend/public/i18n/pt-BR/common.json @@ -55,14 +55,6 @@ "label": "idioma" } }, - "update": { - "heading": "Crab Fit foi atualizado", - "body": "Uma nova versão está disponível com atualizações, correções e funções novas.", - "buttons": { - "close": "Fechar", - "reload": "Recarregar" - } - }, "video": { "title": "Vídeo promocional Crab Fit", "button": "veja o vídeo" diff --git a/crabfit-frontend/public/i18n/ru/common.json b/crabfit-frontend/public/i18n/ru/common.json index 3b1f04c..6d6a627 100644 --- a/crabfit-frontend/public/i18n/ru/common.json +++ b/crabfit-frontend/public/i18n/ru/common.json @@ -54,13 +54,5 @@ "language": { "label": "Язык" } - }, - "update": { - "heading": "Crab Fit обновлен", - "body": "Доступна новая версия Crab Fit, которая включает обновления, исправления и новые функции.", - "buttons": { - "close": "Закрыть", - "reload": "Перезагрузить" - } } } diff --git a/crabfit-frontend/src/components/UpdateDialog/UpdateDialog.jsx b/crabfit-frontend/src/components/UpdateDialog/UpdateDialog.jsx deleted file mode 100644 index 20f0f31..0000000 --- a/crabfit-frontend/src/components/UpdateDialog/UpdateDialog.jsx +++ /dev/null @@ -1,25 +0,0 @@ -import { useTranslation } from 'react-i18next' - -import { Button } from '/src/components' - -import { - Wrapper, - ButtonWrapper, -} from './UpdateDialog.styles' - -const UpdateDialog = ({ onClose }) => { - const { t } = useTranslation('common') - - return ( - -

{t('common:update.heading')}

-

{t('common:update.body')}

- - - - -
- ) -} - -export default UpdateDialog diff --git a/crabfit-frontend/src/components/UpdateDialog/UpdateDialog.styles.js b/crabfit-frontend/src/components/UpdateDialog/UpdateDialog.styles.js deleted file mode 100644 index fb4ca37..0000000 --- a/crabfit-frontend/src/components/UpdateDialog/UpdateDialog.styles.js +++ /dev/null @@ -1,33 +0,0 @@ -import { styled } from 'goober' - -export const Wrapper = styled('div')` - position: fixed; - bottom: 20px; - right: 20px; - background-color: var(--background); - border: 1px solid var(--surface); - z-index: 900; - padding: 20px 26px; - border-radius: 3px; - width: 400px; - box-sizing: border-box; - max-width: calc(100% - 40px); - box-shadow: 0 3px 6px 0 rgba(0,0,0,.3); - - & h2 { - margin: 0; - font-size: 1.3rem; - } - & p { - margin: 16px 0 24px; - font-size: 1rem; - } -` - -export const ButtonWrapper = styled('div')` - display: flex; - align-items: center; - justify-content: flex-end; - gap: 16px; - flex-wrap: wrap; -` diff --git a/crabfit-frontend/src/components/index.js b/crabfit-frontend/src/components/index.js index 6254806..a0cb606 100644 --- a/crabfit-frontend/src/components/index.js +++ b/crabfit-frontend/src/components/index.js @@ -18,7 +18,6 @@ export { default as Egg } from './Egg/Egg' export { default as Footer } from './Footer/Footer' export { default as Recents } from './Recents/Recents' export { default as Logo } from './Logo/Logo' -export { default as UpdateDialog } from './UpdateDialog/UpdateDialog' export { default as TranslateDialog } from './TranslateDialog/TranslateDialog' export const _GoogleCalendar = () => import('./GoogleCalendar/GoogleCalendar')